cats_core 1.3.13 → 1.3.14
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/monthly_plan.rb +1 -0
- data/app/models/cats/core/monthly_plan_item_detail.rb +1 -1
- data/app/models/cats/core/plan.rb +3 -1
- data/db/migrate/{20220107224630_create_cats_core_monthly_rations.rb → 20220107124630_create_cats_core_monthly_rations.rb} +0 -0
- data/db/migrate/20220107132433_create_cats_core_monthly_plan_item_details.rb +3 -3
- data/lib/cats/core/version.rb +1 -1
- data/spec/factories/cats/core/monthly_plan_item_details.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4be4eb5f572d4c38a09f3ddfb775497fd81c0c9e3a9053be1f03bfee51730308
|
4
|
+
data.tar.gz: 4bea5f8744afffa22bad84782ba5e40ef433a31b7c11719da8e910d849803d4c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f600c4c2170e448936f7860659533d22039b6815a4890cb9d0af81476c12f9ef7d28c5828887c73f146b44caa6b191bc57101f8b78a85521117e8c0b027ac1f3
|
7
|
+
data.tar.gz: 3153dc2e38a2d6f33ac3817ad67250a77a308c8ba3c67d4ced336f6aecea9bc9da64c6b35fc055c77a112f92f1dea5f2e2e618579fe7fe8b1e13e83f83c04838
|
@@ -9,11 +9,13 @@ module Cats
|
|
9
9
|
|
10
10
|
BELG = 'Belg'.freeze
|
11
11
|
MEHER = 'Meher'.freeze
|
12
|
-
|
12
|
+
ANNUAL = 'Annual'.freeze
|
13
|
+
SEASONS = [BELG, MEHER, ANNUAL].freeze
|
13
14
|
|
14
15
|
belongs_to :program
|
15
16
|
belongs_to :ration, optional: true
|
16
17
|
has_many :plan_items
|
18
|
+
has_many :plan_item_details, through: :plan_items
|
17
19
|
|
18
20
|
validates :reference_no, :year, :status, presence: true
|
19
21
|
validates :season, presence: true, inclusion: { in: SEASONS }
|
File without changes
|
@@ -5,10 +5,10 @@ class CreateCatsCoreMonthlyPlanItemDetails < ActiveRecord::Migration[6.1]
|
|
5
5
|
null: false,
|
6
6
|
index: { name: 'mpi_on_mpid_indx' },
|
7
7
|
foreign_key: { to_table: :cats_core_monthly_plan_items }
|
8
|
-
t.references :
|
8
|
+
t.references :monthly_ration,
|
9
9
|
null: false,
|
10
|
-
index: { name: '
|
11
|
-
foreign_key: { to_table: :
|
10
|
+
index: { name: 'ri_on_mr_indx' },
|
11
|
+
foreign_key: { to_table: :cats_core_monthly_rations }
|
12
12
|
t.float :amount, null: false
|
13
13
|
|
14
14
|
t.timestamps
|
data/lib/cats/core/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cats_core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.14
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Henock L.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-01-
|
11
|
+
date: 2022-01-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: active_model_serializers
|
@@ -385,9 +385,9 @@ files:
|
|
385
385
|
- db/migrate/20211229160129_create_cats_core_commodity_substitutions.rb
|
386
386
|
- db/migrate/20220103152802_create_cats_core_tenderers.rb
|
387
387
|
- db/migrate/20220107121752_create_cats_core_monthly_plans.rb
|
388
|
+
- db/migrate/20220107124630_create_cats_core_monthly_rations.rb
|
388
389
|
- db/migrate/20220107125025_create_cats_core_monthly_plan_items.rb
|
389
390
|
- db/migrate/20220107132433_create_cats_core_monthly_plan_item_details.rb
|
390
|
-
- db/migrate/20220107224630_create_cats_core_monthly_rations.rb
|
391
391
|
- lib/cats/core.rb
|
392
392
|
- lib/cats/core/engine.rb
|
393
393
|
- lib/cats/core/version.rb
|