aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbogdanvlviv <bogdanvlviv@gmail.com>2018-08-12 15:08:07 +0300
committerbogdanvlviv <bogdanvlviv@gmail.com>2018-08-12 22:25:29 +0300
commite1817f80b4a43ffda93c152d7bc260447e0610d6 (patch)
treea2173779cfef67aa6e6c1dae4de1f94d72167bed
parente3ae53f92ca4b5349b7ca54e814063299de03bf0 (diff)
downloadrails-e1817f80b4a43ffda93c152d7bc260447e0610d6.tar.gz
rails-e1817f80b4a43ffda93c152d7bc260447e0610d6.tar.bz2
rails-e1817f80b4a43ffda93c152d7bc260447e0610d6.zip
Clarify "Old Migrations" in "Active Record Migrations" guide [ci skip]
- Name rails app' files relatively to its root - `structure.sql` => `db/structure.sql` - `schema.rb` => `db/schema.rb` - Clarify rails commands - `db:migrate` => `rails db:migrate` - `db:migrate:status` => `rails db:migrate:status` - Add `/` to the end of `db/migrate` in order to express that it is directory and to keep consistency with `db/migrate/` above. Follow up #33474
-rw-r--r--guides/source/active_record_migrations.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/guides/source/active_record_migrations.md b/guides/source/active_record_migrations.md
index 9446441b20..4d195988f8 100644
--- a/guides/source/active_record_migrations.md
+++ b/guides/source/active_record_migrations.md
@@ -1050,17 +1050,17 @@ application.
Old Migrations
--------------
-The `schema.rb` or `structure.sql` is a snapshot of the current state of your
+The `db/schema.rb` or `db/structure.sql` is a snapshot of the current state of your
database and is the authoritative source for rebuilding that database. This
makes it possible to delete old migration files.
When you delete migration files in the `db/migrate/` directory, any environment
-where `db:migrate` was run when those files still existed will hold a reference
+where `rails db:migrate` was run when those files still existed will hold a reference
to the migration timestamp specific to them inside an internal Rails database
table named `schema_migrations`. This table is used to keep track of whether
migrations have been executed in a specific environment.
-If you run the `db:migrate:status` command, which displays the status
+If you run the `rails db:migrate:status` command, which displays the status
(up or down) of each migration, you should see `********** NO FILE **********`
displayed next to any deleted migration file which was once executed on a
-specific environment but can no longer be found in the `db/migrate` directory.
+specific environment but can no longer be found in the `db/migrate/` directory.