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

  def change
    safety_assured do
      add_reference :conversations, :account, foreign_key: true, index: {algorithm: :concurrently}
    end
  end
end