Method: Lhm#change_table
- Defined in:
- lib/lhm.rb
#change_table(table_name, options = {}) {|Migrator| ... } ⇒ Boolean
Alters a table with the changes described in the block
46 47 48 49 50 51 52 |
# File 'lib/lhm.rb', line 46 def change_table(table_name, = {}, &block) origin = Table.parse(table_name, connection) invoker = Invoker.new(origin, connection) block.call(invoker.migrator) invoker.run() true end |