2023-01-25 21:15:54 +01:00
|
|
|
class Picture < ApplicationRecord
|
|
|
|
belongs_to :member
|
|
|
|
|
|
|
|
mount_uploader :picture, PictureUploader
|
|
|
|
|
|
|
|
validates :text, length: { maximum: 80 }
|
2023-01-25 21:46:30 +01:00
|
|
|
validates :happened, presence: true
|
2023-06-18 15:21:41 +02:00
|
|
|
validates :picture, presence: true
|
2023-01-25 21:15:54 +01:00
|
|
|
|
|
|
|
end
|