add index for sis_batch_errors

fixes CORE-2234

test plan
 - db:migrate should work

Change-Id: If5ef6beadcb9f5fb32cf47cf0a8a35b542b82480
Reviewed-on: https://gerrit.instructure.com/174847
Reviewed-by: James Williams <jamesw@instructure.com>
Tested-by: Jenkins
QA-Review: Rob Orton <rob@instructure.com>
Product-Review: Rob Orton <rob@instructure.com>
This commit is contained in:
Rob Orton 2018-12-10 10:58:04 -07:00
parent c460766f4c
commit e1dcd1873a
1 changed files with 25 additions and 0 deletions

View File

@ -0,0 +1,25 @@
#
# Copyright (C) 2018 - 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 AddCreatedAtIndexToSisBatchErrors < ActiveRecord::Migration[5.1]
tag :postdeploy
disable_ddl_transaction!
def change
add_index :sis_batch_errors, :created_at, algorithm: :concurrently
end
end