residency/app/models/picture.rb
2023-01-25 22:46:30 +02:00

10 lines
186 B
Ruby

class Picture < ApplicationRecord
belongs_to :member
mount_uploader :picture, PictureUploader
validates :text, length: { maximum: 80 }
validates :happened, presence: true
end