about summary refs log tree commit diff
path: root/lib/generators/post_deployment_migration/USAGE
diff options
context:
space:
mode:
authorClaire <claire.github-309c@sitedethib.com>2023-04-17 13:10:52 +0200
committerGitHub <noreply@github.com>2023-04-17 13:10:52 +0200
commitf30c5e7f15f967019245d2c78f3c2e89800eb838 (patch)
treec75cb4589dbc605065f9d32aef783de36631529a /lib/generators/post_deployment_migration/USAGE
parentf28942cef991c9285236ea3ecace98c9b65c5242 (diff)
parent34f8e696e29683fd8b7113e7997e968869b76473 (diff)
Merge pull request #2181 from ClearlyClaire/glitch-soc/merge-upstream
Merge upstream changes
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.