Skip to content

Commit 6cea6b8

Browse files
fix final submission index
1 parent 4a20e4f commit 6cea6b8

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
class RemoveUniquenessFromPeoplesChoiceVoteInFinalSubmissions < ActiveRecord::Migration[8.0]
2+
def change
3+
remove_index :hackathon_final_submissions, :peoples_choice_vote_id
4+
add_index :hackathon_final_submissions, :peoples_choice_vote_id
5+
end
6+
end

packages/hackathon/app/models/hackathon/final_submission.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#
1212
# Indexes
1313
#
14-
# index_hackathon_final_submissions_on_peoples_choice_vote_id (peoples_choice_vote_id) UNIQUE
14+
# index_hackathon_final_submissions_on_peoples_choice_vote_id (peoples_choice_vote_id)
1515
# index_hackathon_final_submissions_on_team_id (team_id) UNIQUE
1616
#
1717
# Foreign Keys

0 commit comments

Comments
 (0)