chore: Add missing indexes for attachments table (#5588)

- index for attachments table
- index for conversations table
This commit is contained in:
Sojan Jose
2022-10-10 15:23:33 -07:00
committed by GitHub
parent 779f815f8e
commit 5bd5395d31
4 changed files with 20 additions and 1 deletions

View File

@@ -0,0 +1,8 @@
class AddIndexToMessageAttachments < ActiveRecord::Migration[6.1]
def change
add_index :attachments, :account_id
add_index :attachments, :message_id
add_index :conversations, :contact_id
add_index :conversations, :inbox_id
end
end