Flowdock
method

inverse_of

Importance_1
inverse_of(command, args, &block) public

Returns the inverse of the given command. For example:

recorder.inverse_of(:rename_table, [:old, :new])
# => [:rename_table, [:new, :old]]

This method will raise an IrreversibleMigration exception if it cannot invert the command.

Show source
Register or log in to add new notes.