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

Migrations can also run the "change" method

This commit is contained in:
Jason Noble 2011-12-03 19:19:59 -07:00
parent 4130fe3a5b
commit 93d9845c30

View file

@ -541,9 +541,9 @@ 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.
If you specify a target version, Active Record will run the required migrations
(up or down) until it has reached the specified version. The version is the
numerical prefix on the migration's filename. For example, to migrate to version
20080906120000 run
(up or down or change) until it has reached the specified version. The version
is the numerical prefix on the migration's filename. For example, to migrate
to version 20080906120000 run
<shell>
$ rake db:migrate VERSION=20080906120000