mirror of
https://github.com/docusealco/docuseal
synced 2026-11-06 23:12:33 -05:00
update email events index
This commit is contained in:
1 parent
b3dc8d55be
commit
0b4754ca24
3 files changed
+15
-3
No files matched your search
@@ -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
|
||||
Reference in new issue
Block a user