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

@@ -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