diff --git a/db/migrate/20180803085321_add_index_email_logs_on_bounced.rb b/db/migrate/20180803085321_add_index_email_logs_on_bounced.rb new file mode 100644 index 00000000000..549217abd07 --- /dev/null +++ b/db/migrate/20180803085321_add_index_email_logs_on_bounced.rb @@ -0,0 +1,6 @@ +class AddIndexEmailLogsOnBounced < ActiveRecord::Migration[5.2] + def change + add_index :email_logs, :bounced + remove_index :email_logs, [:user_id, :created_at] + end +end