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

13 lines
271 B
Ruby

class AddIndexOnSubmissionsSubmittedAt < ActiveRecord::Migration
tag :postdeploy
disable_ddl_transaction!
def self.up
add_index :submissions, :submitted_at, algorithm: :concurrently
end
def self.down
remove_index :submissions, :submitted_at
end
end