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

Added a USAGE document to the migration generator

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1722 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
David Heinemeier Hansson 2005-07-06 05:19:56 +00:00
parent 707106f347
commit 6f26511076

View file

@ -0,0 +1,14 @@
Description:
The migration generator creates a stub for a new database migration.
The generator takes a migration name as its argument. The migration name may be
given in CamelCase or under_score.
The generator creates a migration class in db/migrate prefixed by its number
in the queue.
Example:
./script/generate migration AddSslFlag
With 4 existing migrations, this will create an AddSslFlag migration in the
file db/migrate/5_add_ssl_flag.rb