skill-assessment-app/app/models/user.rb
2016-08-22 16:26:21 -05:00

9 lines
201 B
Ruby

class User < ApplicationRecord
has_secure_password
has_many :candidates, foreign_key: "recruiter_id"
validates_presence_of :email
validates_presence_of :name
validates_presence_of :role
end