Skip to content

Commit

Permalink
Replace SyncInvoker when syncing table
Browse files Browse the repository at this point in the history
  • Loading branch information
perryism committed Jan 27, 2018
1 parent 1c529fb commit 122b5ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/lhm.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def change_table(table_name, options = {}, &block)
def sync_table(table_name, sync_table, options = {}, &block)
Lhm::Table.naming_strategy = lambda{|x| sync_table.to_s }
origin = Table.parse(table_name, connection)
invoker = Invoker.new(origin, connection)
invoker = SyncInvoker.new(origin, connection)
block.call(invoker.migrator)
options.merge!({disable_switcher: true, delete_trigger_after: false})
invoker.run(options)
Expand Down

0 comments on commit 122b5ff

Please sign in to comment.