chore: Add missing indexes for attachments table (#5588)
- index for attachments table - index for conversations table
This commit is contained in:
@@ -14,6 +14,11 @@
|
||||
# account_id :integer not null
|
||||
# message_id :integer not null
|
||||
#
|
||||
# Indexes
|
||||
#
|
||||
# index_attachments_on_account_id (account_id)
|
||||
# index_attachments_on_message_id (message_id)
|
||||
#
|
||||
|
||||
class Attachment < ApplicationRecord
|
||||
include Rails.application.routes.url_helpers
|
||||
|
||||
@@ -31,8 +31,10 @@
|
||||
# index_conversations_on_account_id_and_display_id (account_id,display_id) UNIQUE
|
||||
# index_conversations_on_assignee_id_and_account_id (assignee_id,account_id)
|
||||
# index_conversations_on_campaign_id (campaign_id)
|
||||
# index_conversations_on_contact_id (contact_id)
|
||||
# index_conversations_on_contact_inbox_id (contact_inbox_id)
|
||||
# index_conversations_on_first_reply_created_at (first_reply_created_at)
|
||||
# index_conversations_on_inbox_id (inbox_id)
|
||||
# index_conversations_on_last_activity_at (last_activity_at)
|
||||
# index_conversations_on_status_and_account_id (status,account_id)
|
||||
# index_conversations_on_team_id (team_id)
|
||||
|
||||
Reference in New Issue
Block a user