diff options
Diffstat (limited to 'db/migrate')
-rw-r--r-- | db/migrate/20200801210543_add_accounts_to_publishing_delays.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/db/migrate/20200801210543_add_accounts_to_publishing_delays.rb b/db/migrate/20200801210543_add_accounts_to_publishing_delays.rb new file mode 100644 index 000000000..0c720d30c --- /dev/null +++ b/db/migrate/20200801210543_add_accounts_to_publishing_delays.rb @@ -0,0 +1,9 @@ +class AddAccountsToPublishingDelays < ActiveRecord::Migration[5.2] + disable_ddl_transaction! + + def change + safety_assured do + add_reference :publishing_delays, :accounts, null: false, foreign_key: { on_delete: :cascade }, index: { algorithm: :concurrently } + end + end +end |