Skip to content

Commit 93f1ebd

Browse files
fix final submission index
1 parent 4a20e4f commit 93f1ebd

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
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

db/schema.rb

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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)