Module: ActiveRecordShards::MigrationClassExtension
- Defined in:
- lib/active_record_shards/migration.rb
Instance Attribute Summary collapse
-
#migration_shard ⇒ Object
Returns the value of attribute migration_shard.
Instance Method Summary collapse
Instance Attribute Details
#migration_shard ⇒ Object
Returns the value of attribute migration_shard.
84 85 86 |
# File 'lib/active_record_shards/migration.rb', line 84 def migration_shard @migration_shard end |
Instance Method Details
#shard(arg = nil) ⇒ Object
86 87 88 |
# File 'lib/active_record_shards/migration.rb', line 86 def shard(arg = nil) self.migration_shard = arg end |