Sha256: ac0ded56d044ae2a66ac1168f35050f7cd3f011eeb95723e7b8fbf961c5b4e33

Contents?: true

Size: 639 Bytes

Versions: 5

Compression:

Stored size: 639 Bytes

Contents

#
# Lead
# _vp_ 20171204
#
class Ish::Lead
  include Mongoid::Document
  include Mongoid::Timestamps

  store_in :collection => 'ish_lead'

  belongs_to :profile, :class_name => 'IshModels::UserProfile'

  field :email
  field :job_url

  field :company, :default => ''
  validates_uniqueness_of :company

  field :description

  STATES = [ :considering, :applied ]
  field :state, :type => Symbol

  field :is_done,  :type => Boolean, :default => false
  field :is_trash, :type => Boolean, :default => false

  field :applied_on, :type => Time

  field :tag # 'hired_com_ror', not enumerated for now _vp_ 20180103
  field :location

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ish_models-0.0.33.58 lib/ish/lead.rb
ish_models-0.0.33.57 lib/ish/lead.rb
ish_models-0.0.33.56 lib/ish/lead.rb
ish_models-0.0.33.55 lib/ish/lead.rb
ish_models-0.0.33.54 lib/ish/lead.rb