mirror of https://github.com/docusealco/docuseal
parent
b3dc8d55be
commit
0b4754ca24
@ -0,0 +1,12 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class UpdateEmailEventTypeIndex < ActiveRecord::Migration[8.0]
|
||||
def change
|
||||
remove_index :email_events, :email, where: "event_type IN ('bounce', 'soft_bounce', 'complaint', 'soft_complaint')",
|
||||
name: 'index_email_events_on_email_event_types'
|
||||
|
||||
add_index :email_events, :email,
|
||||
where: "event_type IN ('bounce', 'soft_bounce', 'permanent_bounce', 'complaint', 'soft_complaint')",
|
||||
name: 'index_email_events_on_email_event_types'
|
||||
end
|
||||
end
|
||||
Loading…
Reference in new issue