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:
parent
4130fe3a5b
commit
93d9845c30
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue