12 lines
246 B
Ruby
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
|