mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-04-10 23:53:06 +00:00
Match index uniqueness not required as wrestlers may match up again
This commit is contained in:
@@ -4,7 +4,7 @@ class IntroduceIndexes < ActiveRecord::Migration
|
|||||||
add_index :schools, :tournament_id
|
add_index :schools, :tournament_id
|
||||||
add_index :mats, :tournament_id
|
add_index :mats, :tournament_id
|
||||||
add_index :matches, :tournament_id
|
add_index :matches, :tournament_id
|
||||||
add_index :matches, [:w1, :w2], :unique => true
|
add_index :matches, [:w1, :w2]
|
||||||
add_index :wrestlers, :weight_id
|
add_index :wrestlers, :weight_id
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user