1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

updating documentation

This commit is contained in:
Aaron Patterson 2010-11-18 15:15:03 -08:00
parent 96b50a0392
commit 0d7410faab

View file

@ -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}"