about summary refs log tree commit diff
path: root/db/migrate/20200801210543_add_accounts_to_publishing_delays.rb
blob: 21f29aab850f64f5b1e471721a816cbe0d400d14 (plain) (blame)
1
2
3
4
5
6
7
8
9
class AddAccountsToPublishingDelays < ActiveRecord::Migration[5.2]
  disable_ddl_transaction!

  def change
    safety_assured do
      add_reference :publishing_delays, :account, null: false, foreign_key: { on_delete: :cascade }, index: { algorithm: :concurrently }
    end
  end
end