Add index for `EmailLog#topic_id` and `EmailLog#post_id`.

This commit is contained in:
Guo Xiang Tan 2018-01-11 17:22:26 +08:00
parent afb18a5c41
commit 9c66473c4c
1 changed files with 6 additions and 0 deletions

View File

@ -0,0 +1,6 @@
class AddIndexesToEmailLogs < ActiveRecord::Migration[5.1]
def change
add_index :email_logs, :post_id
add_index :email_logs, :topic_id
end
end