Initial app
This commit is contained in:
10
db/migrate/20250313142853_create_contests.rb
Normal file
10
db/migrate/20250313142853_create_contests.rb
Normal file
@@ -0,0 +1,10 @@
|
||||
class CreateContests < ActiveRecord::Migration[8.0]
|
||||
def change
|
||||
create_table :contests do |t|
|
||||
t.string :name
|
||||
t.belongs_to :user, null: false, foreign_key: true
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user