13 lines
354 B
Ruby
13 lines
354 B
Ruby
class AddReportSnapshotsIndex < ActiveRecord::Migration
|
|
tag :postdeploy
|
|
disable_ddl_transaction!
|
|
|
|
def self.up
|
|
add_index :report_snapshots, [:report_type, :account_id, :created_at], algorithm: :concurrently, name: 'index_on_report_snapshots'
|
|
end
|
|
|
|
def self.down
|
|
remove_index :report_snapshots, name: 'index_on_report_snapshots'
|
|
end
|
|
end
|