volunteers/app/models/picture.rb
2023-02-03 22:34:41 +02:00

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