starting with events, tied to profiles (not accounts)

This commit is contained in:
2023-01-16 14:49:45 +02:00
parent 63299d4464
commit cb54951037
19 changed files with 307 additions and 11 deletions

View File

@ -0,0 +1,14 @@
class CreateEvents < ActiveRecord::Migration[7.0]
def change
create_table :events do |t|
t.string :name , null: false
t.text :text , null: false
t.date :start_date , null: false
t.date :end_date
t.references :profile, null: false, foreign_key: true
t.string :picture , null: false
t.timestamps
end
end
end