ish_models 0.0.33.275 → 0.0.33.277

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: cb3b606c0341b93021417a856e8fc0a063702b35322f251f9c90a3ea0fda0f64
4
- data.tar.gz: 5b71e854c048e75107fed2a849b1d743dde82e66fc627e0d9cbd098b8c2a7574
3
+ metadata.gz: 36411d08f39d7a925ed4fd5de390befa5eee272007fec32f066abfb70b3cf2ad
4
+ data.tar.gz: 1c8e73e3ebd9d90089e9f04fa6801f6829923d2fadef4bb718ead3914caba12d
5
5
  SHA512:
6
- metadata.gz: ac6d3b421013aa46142df4b361056b739a980f6d1f9786b1d76256b9840475899fe237f6a845ff73434760d35b7090e8a55537c7a7fe447edbb54b235437c451
7
- data.tar.gz: 0fa6529999ecfc23d6fa92119114f87945bef3689588af0c872ad547087b45011c33ec08adeb90a8af9b4128fa7b26371bd87859e38d14664b78cedc3fe617f7
6
+ metadata.gz: 5708dc9923e8a8e4dd2de2d944388f42a187324c299805e8f5f1508ea8739f0e1fea2f6d89fe03b694c2db2828837d2e47ac47c30c010238a02daeda2658c733
7
+ data.tar.gz: e217472d41b1942cc9f67614853476f31509a4febb9bee257a18693465ec3bf1c2013f9393e641e576ac9fc75dc7eaac9fdd91344229006f2628c59b5ac229ff
data/lib/gallery.rb CHANGED
@@ -9,7 +9,7 @@ class Gallery
9
9
 
10
10
  field :name
11
11
  validates :name, :uniqueness => true
12
- index({ :name => -1 }, { :unique => true })
12
+ index({ :name => -1 }) ## 2023-09-23 removed uniqueness
13
13
 
14
14
  field :subhead
15
15
  field :descr, :as => :description
@@ -59,6 +59,7 @@ class Office::EmailConversation
59
59
  wp_term_id: tag.id,
60
60
  }).first&.delete
61
61
  end
62
+ def rmtag which; remove_tag which; end
62
63
 
63
64
  def in_emailtag? which
64
65
  tag = WpTag.iso_get( which )
@@ -5,7 +5,10 @@ class Office::EmailConversationTag
5
5
 
6
6
  belongs_to :email_conversation, class_name: 'Office::EmailConversation'
7
7
 
8
- field :wp_term_id, type: :integer
8
+ field :wp_term_id, type: :integer
9
9
  validates :wp_term_id, uniqueness: { scope: :email_conversation_id }, presence: true
10
+ index({ wp_term_id: -1 })
11
+ index({ wp_term_id: -1, latest_at: -1 })
12
+
10
13
 
11
14
  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.275
4
+ version: 0.0.33.277
5
5
  platform: ruby
6
6
  authors:
7
7
  - piousbox