canvas-lms/db/migrate/20130820210746_add_index_on...

13 lines
285 B
Ruby

class AddIndexOnCccc < ActiveRecord::Migration
tag :postdeploy
disable_ddl_transaction!
def self.up
add_index :communication_channels, :confirmation_code, algorithm: :concurrently
end
def self.down
remove_index :communication_channels, :confirmation_code
end
end