From 9b84e78fdf5d31931fe85518e5063a5f88dfe88b Mon Sep 17 00:00:00 2001 From: Guo Xiang Tan Date: Tue, 24 Jul 2018 11:14:19 +0800 Subject: [PATCH] Update annotations. --- app/models/email_log.rb | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/app/models/email_log.rb b/app/models/email_log.rb index b2d88d3c1cc..911edacc6a3 100644 --- a/app/models/email_log.rb +++ b/app/models/email_log.rb @@ -92,7 +92,6 @@ end # updated_at :datetime not null # reply_key :uuid # post_id :integer -# topic_id :integer # skipped :boolean default(FALSE) # skipped_reason :string # bounce_key :uuid @@ -101,12 +100,12 @@ end # # Indexes # -# idx_email_logs_user_created_filtered (user_id,created_at) WHERE (skipped = false) -# index_email_logs_on_created_at (created_at) -# index_email_logs_on_message_id (message_id) -# index_email_logs_on_post_id (post_id) -# index_email_logs_on_reply_key (reply_key) -# index_email_logs_on_skipped_and_created_at (skipped,created_at) -# index_email_logs_on_topic_id (topic_id) -# index_email_logs_on_user_id_and_created_at (user_id,created_at DESC) +# idx_email_logs_user_created_filtered (user_id,created_at) WHERE (skipped = false) +# index_email_logs_on_created_at (created_at) +# index_email_logs_on_message_id (message_id) +# index_email_logs_on_post_id (post_id) +# index_email_logs_on_reply_key (reply_key) +# index_email_logs_on_skipped_and_bounced_and_created_at (skipped,bounced,created_at) +# index_email_logs_on_topic_id (topic_id) +# index_email_logs_on_user_id (user_id) #