Module: XBar::Migration::ClassMethods
- Defined in:
- lib/xbar/migration.rb
Instance Method Summary collapse
Instance Method Details
#using(*args) ⇒ Object
28 29 30 31 32 33 34 35 36 37 38 39 40 41 |
# File 'lib/xbar/migration.rb', line 28 def using(*args) if self.connection.is_a?(XBar::Proxy) # Doesn't it make sense to only keep the schema_migrations table on the # master shard? If we create these other tables, they are unused anyway. #args.each do |shard| # self.connection.check_schema_migrations(shard) #end @current_shard = *args self.connection.enter_block_scope self.current_shard = args self.connection.current_shard = args end return self end |