6 Matching Annotations
- Mar 2022
-
github.com github.com
-
-
If you need to ensure migrations run in a certain order with regular db:migrate, set up Outrigger.ordered. It can be a hash or a proc that takes a tag; either way it needs to return a sortable value: Outrigger.ordered = { predeploy: -1, postdeploy: 1 } This will run predeploys, untagged migrations (implicitly 0), and then postdeploy migrations.
-
class PreDeployMigration < ActiveRecord::Migration tag :predeploy end
-
-
This is especially useful for zero downtime deploys to Production environments.
-