canvas-lms/db/migrate/20140127204017_enrollments_...

14 lines
320 B
Ruby

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