about summary refs log tree commit diff
path: root/db/migrate/20200801220000_add_accounts_to_destructing_statuses.rb
blob: 42298b27493e1b9b1db38351d2bedd2175386842 (plain) (blame)
1
2
3
4
5
6
7
8
9
class AddAccountsToDestructingStatuses < ActiveRecord::Migration[5.2]
  disable_ddl_transaction!

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