This repository was archived by the owner on Nov 19, 2025. It is now read-only.
Releases: zendesk/active_record_shards
Releases · zendesk/active_record_shards
ActiveRecord Shards v3.18.0
Changed / Deprecated
Adds deprecation warning for all methods containing master/slave which recommends using the updated primary/replica methods. The main public methods changed:
on_slave=>on_replicaon_master=>on_primary
other methods changed:
on_master_if=>on_primary_ifon_slave_if=>on_replica_ifon_master_unless=>on_primary_unlesson_slave_unless=>on_replica_unlesson_master_or_slave=>on_primary_or_replicaexists_with_default_slave=>exists_with_default_replicafrom_slave=>from_replicainitialize_shard_and_slave=>initialize_shard_and_replicaShardSelection#optionsno longer uses:slave, if this method was overridden ensure it returns:replicainstead of:slave:{ shard: .., replica: ... }
SQL comments (see debugging) will now log ... /* replica */ instead of ... /* slave */