diff --git a/db/migrate/20180111092141_add_indexes_to_email_logs.rb b/db/migrate/20180111092141_add_indexes_to_email_logs.rb new file mode 100644 index 00000000000..692c6dcb609 --- /dev/null +++ b/db/migrate/20180111092141_add_indexes_to_email_logs.rb @@ -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