canvas-lms/db/migrate/20131106161158_add_report_s...

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