add email event date index

This commit is contained in:
Pete Matsyburka
2025-05-30 11:12:33 +03:00
parent 3b894f5281
commit f7dfc0b2ed
3 changed files with 14 additions and 6 deletions
@@ -0,0 +1,8 @@
# frozen_string_literal: true
class AddEmailEventsDateIndex < ActiveRecord::Migration[8.0]
def change
remove_index :email_events, :account_id
add_index :email_events, %i[account_id event_datetime]
end
end