forked from instructure/canvas-lms
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove index on assignments.integration_id
It turns out the integration_id is not unique, and in addition, is not used for lookup by SIS or pro serv. Fixes SIS-287 Change-Id: Ie3a2e35fad064896d69fb980ba8103b0861f04c2 Reviewed-on: https://gerrit.instructure.com/35339 Tested-by: Jenkins <[email protected]> Reviewed-by: Brian Palmer <[email protected]> Product-Review: Brian Palmer <[email protected]> QA-Review: Brian Palmer <[email protected]>
- Loading branch information
Showing
2 changed files
with
17 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
db/migrate/20140522164545_remove_assignment_integration_id_index.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
class RemoveAssignmentIntegrationIdIndex < ActiveRecord::Migration | ||
tag :predeploy | ||
|
||
def up | ||
if index_exists?(:assignments, :integration_id) | ||
remove_index :assignments, :integration_id | ||
end | ||
end | ||
|
||
def down | ||
end | ||
end |