about summary refs log tree commit diff
path: root/lib/generators/post_deployment_migration/USAGE
diff options
context:
space:
mode:
authorMatt Jankowski <matt@jankowski.online>2023-04-11 11:25:29 +0200
committerGitHub <noreply@github.com>2023-04-11 11:25:29 +0200
commita2a66300d99ed53d63a7f065ffbed53d2ce074e3 (patch)
tree0c0f0e44df9e50ded8ac4c8685e2f16e17f37fb8 /lib/generators/post_deployment_migration/USAGE
parent3c7053a2db86450d48849ca6b2f7e9ab6ff071bb (diff)
Clean up the post deployment migration generator (#24233)
Diffstat (limited to 'lib/generators/post_deployment_migration/USAGE')
-rw-r--r--lib/generators/post_deployment_migration/USAGE10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/generators/post_deployment_migration/USAGE b/lib/generators/post_deployment_migration/USAGE
new file mode 100644
index 000000000..57f3c6aa1
--- /dev/null
+++ b/lib/generators/post_deployment_migration/USAGE
@@ -0,0 +1,10 @@
+Description:
+    Generate a Rails migration in the db/post_migrate/ dir.
+
+    Interacts with the post_deployment_migrations initializer.
+
+Example:
+    bin/rails generate post_deployment_migration IsolateChanges
+
+    Creates a migration in db/post_migrate/<timestamp>_isolate_changes.rb
+    which will have `disable_ddl_transaction!` and a `change` method included.