add context index to external tools

Change-Id: I91c635c0f33c43835c39fef1ff9495b2040abb95
Reviewed-on: https://gerrit.instructure.com/87912
Reviewed-by: Cody Cutrer <cody@instructure.com>
Tested-by: Jenkins
Product-Review: James Williams  <jamesw@instructure.com>
QA-Review: James Williams  <jamesw@instructure.com>
This commit is contained in:
James Williams 2016-08-16 11:04:55 -06:00
parent e8e6b335e8
commit a18227c2cb
1 changed files with 8 additions and 0 deletions

View File

@ -0,0 +1,8 @@
class AddContextIndexToExternalTools < ActiveRecord::Migration
disable_ddl_transaction!
tag :postdeploy
def change
add_index :context_external_tools, [:context_id, :context_type], algorithm: :concurrently
end
end