first gallery version

This commit is contained in:
Torsten
2023-01-25 22:15:54 +02:00
parent 09500b8223
commit e7b24d1201
22 changed files with 304 additions and 12 deletions

View File

@ -6,7 +6,9 @@ class Member < ApplicationRecord
mount_uploader :picture, PictureUploader
has_many :stories
has_many :stories
has_many :pictures
validates :bio, length: { maximum: 1000 }
validates :name , length: { minimum: 3 }

9
app/models/picture.rb Normal file
View File

@ -0,0 +1,9 @@
class Picture < ApplicationRecord
belongs_to :member
mount_uploader :picture, PictureUploader
validates :text, length: { maximum: 80 }
end