Sha256: 4b0607092ebdd20a193cf1052227ec491159a01f61eb44ad86f37e15b3ac510e

Contents?: true

Size: 727 Bytes

Versions: 11

Compression:

Stored size: 727 Bytes

Contents

class Ish::EmailCampaign
  include Mongoid::Document
  include Mongoid::Timestamps

  store_in :collection => 'ish_campaign'

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

  has_and_belongs_to_many :leads,             :class_name => 'Ish::Lead'
  has_and_belongs_to_many :unsubscribe_leads, :class_name => 'Ish::Lead'

  field :subject
  field :body

  ## @TODO: tags instead?
  field :is_done,  :type => Boolean, :default => false
  field :is_trash, :type => Boolean, :default => false
  field :tag # 'hired_com_ror', not enumerated for now _vp_ 20180103

  ## @TODO: sent on, scheduled_on, ...
  field :applied_on, :type => Time

  ## Need tracking!

  ## this looks like an email_context, copy from there.

end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
ish_models-0.0.33.194 lib/ish/trash/email_campaign.rb
ish_models-0.0.33.193 lib/ish/trash/email_campaign.rb
ish_models-0.0.33.192 lib/ish/trash/email_campaign.rb
ish_models-0.0.33.191 lib/ish/trash/email_campaign.rb
ish_models-0.0.33.190 lib/ish/trash/email_campaign.rb
ish_models-0.0.33.189 lib/ish/trash/email_campaign.rb
ish_models-0.0.33.188 lib/ish/trash/email_campaign.rb
ish_models-0.0.33.187 lib/ish/trash/email_campaign.rb
ish_models-0.0.33.186 lib/ish/trash/email_campaign.rb
ish_models-0.0.33.185 lib/ish/trash/email_campaign.rb
ish_models-0.0.33.184 lib/ish/trash/email_campaign.rb