class EmployeeJobApplication
include Mongoid::Document
include Mongoid::Timestamps
field :job
belongs_to :employee_profile
def get_job
RecruitmentJob.find(self.job) rescue nil
end