aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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