add index for media objects

fixes CNVS-27288

Change-Id: I6042f62a40b2374216484d8ad715ce522b7a0941
Reviewed-on: https://gerrit.instructure.com/72238
Tested-by: Jenkins
Reviewed-by: Rob Orton <rob@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
This commit is contained in:
Cody Cutrer 2016-02-16 10:00:00 -07:00
parent aea3467f45
commit 3ed62e1b0c
1 changed files with 8 additions and 0 deletions

View File

@ -0,0 +1,8 @@
class AddMediaObjectsIndex < ActiveRecord::Migration
tag :postdeploy
disable_ddl_transaction!
def change
add_index :media_objects, :root_account_id, algorithm: :concurrently
end
end