clean up profile generation (wip)

This commit is contained in:
2023-01-20 14:59:34 +02:00
parent 82358d8642
commit caba7630cf
9 changed files with 78 additions and 58 deletions

View File

@ -1,7 +1,7 @@
class Profile < ApplicationRecord
belongs_to :member
has_many :events
validates :name , presence: true
validates :kind , presence: true
validates :bio , presence: true
@ -9,7 +9,7 @@ class Profile < ApplicationRecord
mount_uploader :picture, PictureUploader
def self.types
def self.kinds
["member" , "artist" , "teacher"]
end