mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-03-24 17:04:43 +00:00
11 lines
302 B
Ruby
11 lines
302 B
Ruby
class IntroduceIndexes < ActiveRecord::Migration[4.2]
|
|
def change
|
|
add_index :weights, :tournament_id
|
|
add_index :schools, :tournament_id
|
|
add_index :mats, :tournament_id
|
|
add_index :matches, :tournament_id
|
|
add_index :matches, [:w1, :w2]
|
|
add_index :wrestlers, :weight_id
|
|
end
|
|
end
|