skill-assessment-app/app/models/user.rb

9 lines
201 B
Ruby
Raw Normal View History

2016-07-26 17:00:00 -05:00
class User < ApplicationRecord
has_secure_password
has_many :candidates, foreign_key: "recruiter_id"
2016-08-18 15:35:17 -05:00
validates_presence_of :email
validates_presence_of :name
validates_presence_of :role
2016-07-26 17:00:00 -05:00
end