Files
puzzle-scoreboard/db/migrate/20250320080142_create_contestants.rb
2025-03-20 09:19:39 +01:00

12 lines
246 B
Ruby

class CreateContestants < ActiveRecord::Migration[8.0]
def change
create_table :contestants do |t|
t.string :name
t.string :email
t.belongs_to :contest, null: false, foreign_key: true
t.timestamps
end
end
end