mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Migrations can also run the "change" method
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user