aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2005-07-06 05:19:56 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2005-07-06 05:19:56 +0000
commit6f26511076b36dbad51d7c68881f98e35d984325 (patch)
tree95b610e22a96bf0530018d48b1cafbf0a8b8772b /railties
parent707106f347fada1ac9a7c9e2da7e6d2342f8441d (diff)
downloadrails-6f26511076b36dbad51d7c68881f98e35d984325.tar.gz
rails-6f26511076b36dbad51d7c68881f98e35d984325.tar.bz2
rails-6f26511076b36dbad51d7c68881f98e35d984325.zip
Added a USAGE document to the migration generator
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1722 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties')
-rw-r--r--railties/lib/rails_generator/generators/components/migration/USAGE14
1 files changed, 14 insertions, 0 deletions
diff --git a/railties/lib/rails_generator/generators/components/migration/USAGE b/railties/lib/rails_generator/generators/components/migration/USAGE
new file mode 100644
index 0000000000..5487d3a376
--- /dev/null
+++ b/railties/lib/rails_generator/generators/components/migration/USAGE
@@ -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 \ No newline at end of file