mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
updating documentation
This commit is contained in:
@@ -18,7 +18,13 @@ module ActiveRecord
|
||||
end
|
||||
|
||||
# Returns a list that represents commands that are the inverse of the
|
||||
# commands stored in +commands+.
|
||||
# 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+.
|
||||
def inverse
|
||||
@commands.reverse.map { |name, args|
|
||||
method = :"invert_#{name}"
|
||||
|
||||
Reference in New Issue
Block a user