canvas-lms/db/migrate/20130820210303_add_content_...

13 lines
273 B
Ruby

class AddContentMigrationIndex < ActiveRecord::Migration
tag :postdeploy
disable_ddl_transaction!
def self.up
add_index :content_migrations, :context_id, algorithm: :concurrently
end
def self.down
remove_index :content_migrations, :context_id
end
end