Flowdock
method

inverse_of

Importance_1
Ruby on Rails latest stable (v4.1.8) - 0 notes - Class: CommandRecorder
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.