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

9 lines
240 B
Ruby

class AddForeignKeyIndexes5 < ActiveRecord::Migration
tag :postdeploy
disable_ddl_transaction!
def change
add_index :discussion_topics, :external_feed_id, algorithm: :concurrently, where: "external_feed_id IS NOT NULL"
end
end