aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2017-09-18 00:16:28 +0900
committerGitHub <noreply@github.com>2017-09-18 00:16:28 +0900
commit84b134a80f2208f63a3757a440af87a093adac10 (patch)
tree3cbbf62b1ee042f62726f7c2cc8092ed3f89eb71
parent7300c679b9ab743b9bc0f55ac736f38c9d881123 (diff)
parent7c4dad364cd9e02cf3b8a14fcdbbb3b59428da61 (diff)
downloadrails-84b134a80f2208f63a3757a440af87a093adac10.tar.gz
rails-84b134a80f2208f63a3757a440af87a093adac10.tar.bz2
rails-84b134a80f2208f63a3757a440af87a093adac10.zip
Merge pull request #30632 from dixpac/fix_migration_rollback_docs
Fix docs describing rollback [ci skip]
-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,