clarion/app/models/speaker_profile.rb
Petko Bordjukov 02059ad2a8 Introduce SpeakerProfile
All the personal data of the user that is not used for system
tasks (such as login) is held here.
2014-08-07 14:05:13 +03:00

10 lines
265 B
Ruby

class SpeakerProfile < ActiveRecord::Base
belongs_to :user
validates :first_name, presence: true
validates :last_name, presence: true
validates :photo_url, presence: true
validates :mobile_phone, presence: true
validates :biography, presence: true
end