Files
leadchat/db/migrate/20230612103936_add_index_to_reporting_events.rb
Shivam Mishra 429ec7194f feat: add index to reporting events [CW-1960] (#7294)
* fix: annotation

* feat: add better index for reporting_events
2023-06-12 18:23:42 +05:30

8 lines
263 B
Ruby

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