about summary refs log tree commit diff
path: root/db/migrate/20200702032702_add_conversation_id_index_to_statuses.rb
blob: f35a2fc99dcf0b54514644c8f34ffae33ddc4876 (plain) (blame)
1
2
3
4
5
6
7
class AddConversationIdIndexToStatuses < ActiveRecord::Migration[5.2]
  disable_ddl_transaction!

  def change
    safety_assured { add_index :statuses, :conversation_id, where: 'deleted_at IS NULL', algorithm: :concurrently, name: :index_statuses_on_conversation_id }
  end
end