Add contestants
This commit is contained in:
11
db/migrate/20250320080142_create_contestants.rb
Normal file
11
db/migrate/20250320080142_create_contestants.rb
Normal file
@@ -0,0 +1,11 @@
|
||||
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
|
Reference in New Issue
Block a user