1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-03-25 01:14:43 +00:00
Files
wrestlingdev.com/db/migrate/20150523121319_introduce_indexes.rb

11 lines
297 B
Ruby

class IntroduceIndexes < ActiveRecord::Migration
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