recruitment/app/models/employer_profile.rb

23 lines
516 B
Ruby
Raw Normal View History

2017-12-21 19:41:50 +00:00
class EmployerProfile
include Mongoid::Document
include Mongoid::Timestamps
field :company_name, localize: true
field :contact_person, localize: true
field :office_address, localize: true
field :company_profile, localize: true
field :website
field :country
field :state
field :city
field :zipcode
field :country_code
field :phone_number
field :mobile_number
mount_uploader :avatar, ImageUploader
belongs_to :recruit_profile
has_many :recruitment_jobs, :dependent => :destroy
end