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