Chatwoot/db/migrate/20200311083854_add_index_to_message.rb

7 lines
184 B
Ruby

class AddIndexToMessage < ActiveRecord::Migration[6.0]
def change
add_index :messages, :account_id
add_index :messages, :inbox_id
add_index :messages, :user_id
end
end