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-02-03 21:34:41 +01:00
|
|
|
validates :picture, presence: true
|
2023-01-25 21:15:54 +01:00
|
|
|
|
|
|
|
end
|