clean up profile generation (wip)
This commit is contained in:
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user