cats_core 1.0.39 → 1.0.40
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/cats/core/hrp_item.rb +2 -0
- data/lib/cats/core/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 37b5451e19e51157d009365bb31175b4d944c3571fcb0d9b6ec3d3dcebb7289d
|
4
|
+
data.tar.gz: 8b98610327bb324b7804b837c446883eb2853faeb244686bababae44d71b02ff
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 132f9f7a5af86d83a87a8410490dcc0bd1a2134feb1da3fa8dd3eabe3508e9359369e0ec5aa15918e072fe5769f5645229f006c39c7fd070cbfb756b3ee3fad4
|
7
|
+
data.tar.gz: 218d19acc42b5508c85f9b4e1f3c5b4112bf85b120114038d4f30af3ed4631d92e5dccee8c1f26931b24122d93c62a95ec92bf438785166da69c240306b0cc69
|
@@ -5,6 +5,8 @@ module Cats
|
|
5
5
|
belongs_to :woreda, -> { where(location_type: Cats::Core::Location::WOREDA) }, class_name: 'Cats::Core::Location'
|
6
6
|
belongs_to :operator
|
7
7
|
|
8
|
+
has_many :hrp_item_details
|
9
|
+
|
8
10
|
validates :beneficiaries, presence: true, numericality: { greater_than: 0 }
|
9
11
|
validates :hrp_id, uniqueness: { scope: :woreda_id }
|
10
12
|
|
data/lib/cats/core/version.rb
CHANGED