diff options
author | Fire Demon <firedemon@creature.cafe> | 2020-08-01 16:12:29 -0500 |
---|---|---|
committer | Fire Demon <firedemon@creature.cafe> | 2020-08-30 05:45:16 -0500 |
commit | ca72dc7334d5ee233c3fe5912a4536fc223d4fc4 (patch) | |
tree | 9c8ddddd03273fa7b8783cc5df96549627997498 /db/migrate | |
parent | f17bab4a35cfc168f2c2d7a22bebdfa1e8c72876 (diff) |
[Database] Add missing accounts reference to publishing delay table
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 |