feat: update indexes

This commit is contained in:
Shivam Mishra
2023-06-02 18:25:31 +05:30
parent 0c53e8155c
commit f63a301b17
3 changed files with 4 additions and 6 deletions
+1 -2
View File
@@ -29,12 +29,11 @@
#
# Indexes
#
# index_conversation_with_labels_on_account_id (account_id)
# idx_conv_labels_view__acc_id__status__last_activity (account_id,status,last_activity_at)
# index_conversation_with_labels_on_custom_attributes (custom_attributes) USING gin
# index_conversation_with_labels_on_id (id) UNIQUE
# index_conversation_with_labels_on_labels_array (labels_array) USING gin
# index_conversation_with_labels_on_last_activity_at (last_activity_at)
# index_conversation_with_labels_on_status (status)
#
class ConversationWithLabel < ApplicationRecord
def self.refresh