feat: add index to reporting events [CW-1960] (#7294)

* fix: annotation

* feat: add better index for reporting_events
This commit is contained in:
Shivam Mishra
2023-06-12 18:23:42 +05:30
committed by GitHub
parent c99d9f9557
commit 429ec7194f
4 changed files with 17 additions and 8 deletions

View File

@@ -0,0 +1,7 @@
class AddIndexToReportingEvents < ActiveRecord::Migration[7.0]
disable_ddl_transaction!
def change
add_index :reporting_events, [:account_id, :name, :created_at], name: 'reporting_events__account_id__name__created_at', algorithm: :concurrently
end
end