residency/app/models/picture.rb

11 lines
223 B
Ruby

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