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

[ci skip] add doc for STEP in migration

This commit is contained in:
Aditya Kapoor 2014-08-21 01:01:45 +05:30
parent 2b7d67d49d
commit eb9f1ef84f

View file

@ -181,9 +181,12 @@ module ActiveRecord
# #
# To roll the database back to a previous migration version, use # To roll the database back to a previous migration version, use
# <tt>rake db:migrate VERSION=X</tt> where <tt>X</tt> is the version to which # <tt>rake db:migrate VERSION=X</tt> where <tt>X</tt> is the version to which
# you wish to downgrade. If any of the migrations throw an # you wish to downgrade. Alternatively, you can also use the STEP option if you
# <tt>ActiveRecord::IrreversibleMigration</tt> exception, that step will fail and you'll # wish to rollback last few migrations. <tt>rake db:migrate STEP=2</tt> will rollback
# have some manual work to do. # the latest two migrations.
#
# If any of the migrations throw an <tt>ActiveRecord::IrreversibleMigration</tt> exception,
# that step will fail and you'll have some manual work to do.
# #
# == Database support # == Database support
# #