canvas-lms/db/migrate/20140710153035_add_foreign_...

15 lines
395 B
Ruby

class AddForeignKeyIndexes3 < ActiveRecord::Migration
tag :postdeploy
disable_ddl_transaction!
def self.up
add_index :account_reports, :attachment_id, algorithm: :concurrently
add_index :zip_file_imports, :attachment_id, algorithm: :concurrently
end
def self.down
remove_index :account_reports, :attachment_id
remove_index :zip_file_imports, :attachment_id
end
end