add index on CommunicationChannel.confirmation_code

Change-Id: Id277db73d6964eebdfdd5d76c1d0c7d4f015bad6
Reviewed-on: https://gerrit.instructure.com/23524
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Jacob Fugal <jacob@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
This commit is contained in:
Cody Cutrer 2013-08-20 15:09:02 -06:00
parent 5a88aa93c4
commit 023bb02762
1 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1,12 @@
class AddIndexOnCccc < ActiveRecord::Migration
tag :postdeploy
self.transactional = false
def self.up
add_index :communication_channels, :confirmation_code, concurrently: true
end
def self.down
remove_index :communication_channels, :confirmation_code
end
end