add index

This commit is contained in:
Pete Matsyburka
2025-11-21 13:41:51 +02:00
parent 7ed27bb413
commit abd579103d
3 changed files with 16 additions and 5 deletions
@@ -0,0 +1,9 @@
# frozen_string_literal: true
class AddSendSmsSend2faSmsIndex < ActiveRecord::Migration[8.0]
def change
add_index :submission_events, %i[account_id created_at],
where: "event_type IN ('send_sms', 'send_2fa_sms')",
name: 'index_submissions_events_on_sms_event_types'
end
end