feat: add index migration (#7050)

This commit is contained in:
Shivam Mishra
2023-05-10 17:55:14 +05:30
committed by GitHub
parent 86384bf876
commit d0a1ad746a
3 changed files with 10 additions and 1 deletions

View File

@@ -0,0 +1,7 @@
class AddIndexToMessagesForReportings < ActiveRecord::Migration[7.0]
disable_ddl_transaction!
def change
add_index :messages, [:conversation_id, :account_id, :message_type, :created_at], name: 'index_messages_on_conversation_account_type_created',
algorithm: :concurrently
end
end