sarting to generalize profiles
This commit is contained in:
11
app/models/profile.rb
Normal file
11
app/models/profile.rb
Normal file
@ -0,0 +1,11 @@
|
||||
class Profile < ApplicationRecord
|
||||
belongs_to :member
|
||||
|
||||
validates :name , presence: true
|
||||
validates :kind , presence: true
|
||||
validates :bio , presence: true
|
||||
validates :picture , presence: true
|
||||
|
||||
mount_uploader :picture, PictureUploader
|
||||
|
||||
end
|
Reference in New Issue
Block a user