drop redundant index_submissions_on_user_id

Change-Id: I6240393bf4d972075f3bbacc08bcadb4dd899b0f
Reviewed-on: https://gerrit.instructure.com/20793
Reviewed-by: Cody Cutrer <cody@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
Product-Review: Brian Palmer <brianp@instructure.com>
QA-Review: Brian Palmer <brianp@instructure.com>
This commit is contained in:
Brian Palmer 2013-05-21 10:15:33 -06:00
parent 6b912d1b78
commit a736aae03b
1 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1,12 @@
class DropRedundantSubmissionsIndex < ActiveRecord::Migration
tag :predeploy
def self.up
# there's also a (unique) index on [:user_id, :assignment_id]
remove_index :submissions, [:user_id]
end
def self.down
add_index :submissions, [:user_id]
end
end