1 2 3 4 5 6 7 8 9
class CreateMatches < ActiveRecord::Migration def change create_table :matches do |t| t.references :tournament, index: true t.timestamps end end end