1 2 3 4 5 6 7 8 9 10 11 12
class CreateTournamentPreferences < ActiveRecord::Migration def change create_table :tournament_preferences do |t| t.references :tournament, index: true t.integer :vartype t.string :name t.text :value t.timestamps end end end