0
0
Fork 0

Clean up the post deployment migration generator (#24233)

This commit is contained in:
Matt Jankowski 2023-04-11 11:25:29 +02:00 committed by GitHub
parent 3c7053a2db
commit a2a66300d9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 62 additions and 25 deletions

View file

@ -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.