From 3ed62e1b0c05e111e52528848bde929b85620290 Mon Sep 17 00:00:00 2001 From: Cody Cutrer Date: Tue, 16 Feb 2016 10:00:00 -0700 Subject: [PATCH] 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 Product-Review: Cody Cutrer QA-Review: Cody Cutrer --- db/migrate/20160216165757_add_media_objects_index.rb | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 db/migrate/20160216165757_add_media_objects_index.rb diff --git a/db/migrate/20160216165757_add_media_objects_index.rb b/db/migrate/20160216165757_add_media_objects_index.rb new file mode 100644 index 00000000000..66d9a531642 --- /dev/null +++ b/db/migrate/20160216165757_add_media_objects_index.rb @@ -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