canvas-lms/db/migrate/20120525174337_add_courses_...

13 lines
261 B
Ruby

class AddCoursesSisSourceIdIndex < ActiveRecord::Migration
tag :predeploy
disable_ddl_transaction!
def self.up
add_index :courses, :sis_source_id, :algorithm => :concurrently
end
def self.down
remove_index :courses, :sis_source_id
end
end