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