canvas-lms/db/migrate/20140228201739_drop_unused_...

13 lines
274 B
Ruby

class DropUnusedEnrollmentIndex < ActiveRecord::Migration
tag :postdeploy
disable_ddl_transaction!
def self.up
remove_index :enrollments, [:root_account_id]
end
def self.down
add_index :enrollments, [:root_account_id], algorithm: :concurrently
end
end