discourse/db/migrate/20180803085321_add_index_email_logs_on_bounced.rb
Guo Xiang Tan 6ede7c4623 PERF: Add missing index on EmailLog#bounced.
* Also remove index on `user_id_and_created_at` which
  isn't being used alot.
2018-08-03 17:07:18 +08:00

7 lines
177 B
Ruby

class AddIndexEmailLogsOnBounced < ActiveRecord::Migration[5.2]
def change
add_index :email_logs, :bounced
remove_index :email_logs, [:user_id, :created_at]
end
end