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-01-25 21:15:54 +01:00
|
|
|
|
|
|
|
end
|