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
|