aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record
diff options
context:
space:
mode:
authordixpac <dino.onex@gmail.com>2017-09-17 16:50:32 +0200
committerdixpac <dino.onex@gmail.com>2017-09-17 16:50:32 +0200
commit7c4dad364cd9e02cf3b8a14fcdbbb3b59428da61 (patch)
treedbb655c35c91ad0e78fc97eab3b7bd641b67d46f /activerecord/lib/active_record
parentc46c80b5298ff6d600597cb0edae88680f1fac7c (diff)
downloadrails-7c4dad364cd9e02cf3b8a14fcdbbb3b59428da61.tar.gz
rails-7c4dad364cd9e02cf3b8a14fcdbbb3b59428da61.tar.bz2
rails-7c4dad364cd9e02cf3b8a14fcdbbb3b59428da61.zip
Fix docs describing rollback [ci skip]
* `rails db:migrate STEP = 2` will not rollback the migrations, instead `rails db:rollback STEP = 2` will do the rollback. * Also, rewritten `rails db:migrate VERSION` => `rails db:rollback VERSION` for consistency.
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r--activerecord/lib/active_record/migration.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/migration.rb b/activerecord/lib/active_record/migration.rb
index 52ca4671c2..8845e26ab7 100644
--- a/activerecord/lib/active_record/migration.rb
+++ b/activerecord/lib/active_record/migration.rb
@@ -354,9 +354,9 @@ module ActiveRecord
# to match the structure of your database.
#
# To roll the database back to a previous migration version, use
- # <tt>rails db:migrate VERSION=X</tt> where <tt>X</tt> is the version to which
+ # <tt>rails db:rollback VERSION=X</tt> where <tt>X</tt> is the version to which
# you wish to downgrade. Alternatively, you can also use the STEP option if you
- # wish to rollback last few migrations. <tt>rails db:migrate STEP=2</tt> will rollback
+ # wish to rollback last few migrations. <tt>rails db:rollback STEP=2</tt> will rollback
# the latest two migrations.
#
# If any of the migrations throw an <tt>ActiveRecord::IrreversibleMigration</tt> exception,