Chatwoot/db/migrate/20210723094412_add_index_to_conversations.rb

6 lines
195 B
Ruby

class AddIndexToConversations < ActiveRecord::Migration[6.0]
def change
add_index :conversations, [:status, :account_id]
add_index :conversations, [:assignee_id, :account_id]
end
end