aboutsummaryrefslogtreecommitdiffstats
path: root/railties/guides/source/migrations.textile
diff options
context:
space:
mode:
authorJason Noble <perlwizard@gmail.com>2011-12-03 19:19:17 -0700
committerJason Noble <perlwizard@gmail.com>2011-12-03 19:31:44 -0700
commit4130fe3a5bb85053e4729a16c2aafdd50faa7817 (patch)
treea9e573a4d4b1fd7809d6eef3a6469f7f9f5e61bd /railties/guides/source/migrations.textile
parentf41d099720dd2031341ea355116a7d4e73bee11a (diff)
downloadrails-4130fe3a5bb85053e4729a16c2aafdd50faa7817.tar.gz
rails-4130fe3a5bb85053e4729a16c2aafdd50faa7817.tar.bz2
rails-4130fe3a5bb85053e4729a16c2aafdd50faa7817.zip
Reword section to make it more readable.
Diffstat (limited to 'railties/guides/source/migrations.textile')
-rw-r--r--railties/guides/source/migrations.textile11
1 files changed, 7 insertions, 4 deletions
diff --git a/railties/guides/source/migrations.textile b/railties/guides/source/migrations.textile
index 7186e9998c..02f6557bb8 100644
--- a/railties/guides/source/migrations.textile
+++ b/railties/guides/source/migrations.textile
@@ -529,10 +529,13 @@ can't be done.
h3. Running Migrations
Rails provides a set of rake tasks to work with migrations which boil down to
-running certain sets of migrations. The very first migration related rake task
-you will use will probably be +db:migrate+. In its most basic form it just runs
-the +up+ method for all the migrations that have not yet been run. If there are
-no such migrations, it exits.
+running certain sets of migrations.
+
+The very first migration related rake task you will use will probably be
++rake db:migrate+. In its most basic form it just runs the +up+ or +change+
+method for all the migrations that have not yet been run. If there are
+no such migrations, it exits. It will run these migrations in order based
+on the date of the migration.
Note that running the +db:migrate+ also invokes the +db:schema:dump+ task, which
will update your db/schema.rb file to match the structure of your database.