first commit, largely copied volunteers

This commit is contained in:
2023-10-25 22:14:53 +03:00
commit 608b4f6ddf
222 changed files with 5121 additions and 0 deletions

10
app/models/picture.rb Normal file
View 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