ish_models 0.0.33.281 → 0.0.33.282

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 309331625ed639a9bd1ddfb2142225aede62f631849763c8b3fabd8ce0d02b17
4
- data.tar.gz: ee3439e19b8c30a296978750e572cbbe187a10f66f02ea35eec7a17526cc1d40
3
+ metadata.gz: e5f09926e50bdfd5eb47e0d54068d1e489da436ac66a04cbcbbdf512c54bd08d
4
+ data.tar.gz: '060097f0e62e56a7b6a531d59688818156395c197fddd4e6f99ec9e2a61d2372'
5
5
  SHA512:
6
- metadata.gz: 30e65133826f586e41a9ad12ec57aa48e9bc26c1ba7d214811233e5eb084a73bf8a2e9ca1c866124ca49f8e187035c17ad1960e7154ef15a1db4b7ccc6d9458e
7
- data.tar.gz: 490e745619d555e1c30fc9aab472c75508af4753da93341fe6f869cc5f86d9d2194ab67f93643b76c175d0f02348f8ba2a091a9b7d645bd2b192df32d89036c0
6
+ metadata.gz: 218fbb19117f7f2fd8cfb16b3bd42a926842c01935d533d38a0032f04161128a670cb618e38b3335e6f0e69b927f6b318923734f9f09195f353b1bfb182269c6
7
+ data.tar.gz: 8bbc63978210f3b2e2d33887aa89ae65ad89f70c15be228eafa22604dec316727cda6bbfcc1c0af9f58fb34be468ebbbcd8bab23674476e11f0a95d97c565a91
@@ -53,12 +53,13 @@ class ::Ish::EmailContext
53
53
 
54
54
  field :rendered_str
55
55
 
56
- field :sent_at, type: DateTime
57
- field :send_at, type: DateTime
56
+ field :sent_at, type: DateTime
57
+ field :send_at, type: DateTime
58
+ field :unsubscribed_at, type: DateTime
58
59
 
59
60
 
60
61
  def notsent
61
- Ish::EmailContext.where( sent_at: nil )
62
+ Ish::EmailContext.where( sent_at: nil, unsubscribed_at: nil )
62
63
  end
63
64
  def self.notsent; new.notsent; end
64
65
 
@@ -7,12 +7,12 @@ class Ish::EmailUnsubscribe
7
7
  # validates_presence_of :email
8
8
  # validates_uniqueness_of :email
9
9
 
10
- field :lead_id
10
+ field :lead_id, type: :integer
11
11
  field :reason
12
12
  field :unsubscribed_at
13
13
 
14
- belongs_to :campaign, class_name: '::Ish::EmailCampaign', inverse_of: :unsubscribes
15
- belongs_to :template, class_name: '::Ish::EmailTemplate', inverse_of: :unsubscribes
14
+ belongs_to :campaign, class_name: '::Ish::EmailCampaign', inverse_of: :unsubscribes, optional: true
15
+ belongs_to :template, class_name: '::Ish::EmailTemplate', inverse_of: :unsubscribes, optional: true
16
16
 
17
17
 
18
18
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ish_models
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.33.281
4
+ version: 0.0.33.282
5
5
  platform: ruby
6
6
  authors:
7
7
  - piousbox