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

11
app/models/event.rb Normal file
View File

@ -0,0 +1,11 @@
class Event < ApplicationRecord
belongs_to :profile
validates :name , presence: true
validates :text , presence: true
validates :start_date , presence: true
validates :picture , presence: true
mount_uploader :picture, PictureUploader
end