1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-03-25 01:14:43 +00:00

Match index uniqueness not required as wrestlers may match up again

This commit is contained in:
2015-06-19 13:42:51 +00:00
parent 54828f7761
commit 5364c3eee9

View File

@@ -4,7 +4,7 @@ class IntroduceIndexes < ActiveRecord::Migration
add_index :schools, :tournament_id
add_index :mats, :tournament_id
add_index :matches, :tournament_id
add_index :matches, [:w1, :w2], :unique => true
add_index :matches, [:w1, :w2]
add_index :wrestlers, :weight_id
end
end