first commit, largely copied volunteers
This commit is contained in:
10
app/models/picture.rb
Normal file
10
app/models/picture.rb
Normal file
@ -0,0 +1,10 @@
|
||||
class Picture < ApplicationRecord
|
||||
belongs_to :member
|
||||
|
||||
mount_uploader :picture, PictureUploader
|
||||
|
||||
validates :text, length: { maximum: 80 }
|
||||
validates :happened, presence: true
|
||||
validates :picture, presence: true
|
||||
|
||||
end
|
Reference in New Issue
Block a user