start encoding candidate emails - completes #57
This commit is contained in:
@ -4,6 +4,8 @@ class Candidate < ApplicationRecord
|
||||
has_many :answers
|
||||
belongs_to :recruiter, class_name: "User"
|
||||
|
||||
serialize :email, CryptSerializer
|
||||
|
||||
before_validation(:generate_test_hash, on: :create)
|
||||
|
||||
validates_presence_of :recruiter_id
|
||||
|
Reference in New Issue
Block a user