Module: ActiveRecordShards::MigrationClassExtension

Defined in:
lib/active_record_shards/migration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#migration_shardObject

Returns the value of attribute migration_shard.



85
86
87
# File 'lib/active_record_shards/migration.rb', line 85

def migration_shard
  @migration_shard
end

Instance Method Details

#shard(arg = nil) ⇒ Object



87
88
89
# File 'lib/active_record_shards/migration.rb', line 87

def shard(arg = nil)
  self.migration_shard = arg
end