- Require
securerandom
explicitly - Add support for queries using Sequel's virtual rows
- Eagerly initialize
Model#cells
- Convert shardable value to integer for index tables
- Add
Model#as_json
andCell#as_json
- Remember cell ID after save
Model#reload
now reloads all cells- Add
Model#cells
- Add
Configuration#create_table_options
- Include shard in underlying index name
- Use more static names for underlying database indices
- Use database-portable data types for index columns
- Add
Cell#uuid
- Add
Cell#id
- Add
Model.fetch_latest_cells
- Initialize
ref_key
with zero, not one - Add
Model#present?
andCell#present?
- Allow
Cell#save
to be called even without making any changes - Add
Model#fetch
andCell#fetch
- Add
Model#reload
andCell#reload
- Add
Model#previous
andCell#previous
Model.put
now correctly looks up and updates an existing instance- Add
Model#update
andCell#update
- Expose
Model#base
- Add
Configuration#legacy_created_at_is_bigint
- Keep a reference to only one model class per table name
- Make
Store#find_shard
public - Make
Store#each_shard
public - Name index tables
*_:name_index_*
- Add
Configuration#database_extensions
, they're being passed to the Sequel adapter - Add
Configuration#connection_options
, they're being passed to the Sequel adapter - Don't prefix table names with underscore when store name is
nil
- Add
Store#each_partition
- Add
Store#disconnect
- Add
Store#padded_shard
to get the formatted shard number for a shardable value
- Initial release