Flowdock
method

inverse

Importance_1
v3.2.8 - Show latest stable - 0 notes - Class: CommandRecorder
inverse() public

Returns a list that represents commands that are the inverse of the commands stored in commands. For example:

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

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

Show source
Register or log in to add new notes.