add index for cached_quiz_lti

Change-Id: I14d94148ce5a794a9c107d545c1db8af9ac2535e
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/291797
Reviewed-by: Weston Dransfield <wdransfield@instructure.com>
Migration-Review: Alex Slaughter <aslaughter@instructure.com>
QA-Review: Weston Dransfield <wdransfield@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Product-Review: Alex Slaughter <aslaughter@instructure.com>
This commit is contained in:
Alex Slaughter 2022-05-12 17:21:26 -07:00
parent 01431b4d9d
commit a03564ec41
1 changed files with 28 additions and 0 deletions

View File

@ -0,0 +1,28 @@
# frozen_string_literal: true
#
# Copyright (C) 2022 - present Instructure, Inc.
#
# This file is part of Canvas.
#
# Canvas is free software: you can redistribute it and/or modify it under
# the terms of the GNU Affero General Public License as published by the Free
# Software Foundation, version 3 of the License.
#
# Canvas is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
# A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
# details.
#
# You should have received a copy of the GNU Affero General Public License along
# with this program. If not, see <http://www.gnu.org/licenses/>.
#
class AddCachedQuizLtiIndex < ActiveRecord::Migration[6.0]
tag :predeploy
disable_ddl_transaction!
def change
add_index :submissions, :cached_quiz_lti, algorithm: :concurrently, if_not_exists: true
end
end