starting with events, tied to profiles (not accounts)
This commit is contained in:
11
app/models/event.rb
Normal file
11
app/models/event.rb
Normal 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
|
Reference in New Issue
Block a user