cats_core 1.0.41 → 1.0.42
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 459a3f07d1fadf11fb8120f91ecf18b2df1b7719e05a2e8398e0af664af1b19b
|
4
|
+
data.tar.gz: 92645ac2384a08e79db744e98e8179bcea78112c538c1b6444bbc0a6fa26d34e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 265613d922d768384446ca0e38e3dfcae4ae2bb9f07a7f8a278ebbc3f2ec87fd8c96f08ae08a5ecc605ee9903701bf8d90f45ba5583524717b65f97ad3264509
|
7
|
+
data.tar.gz: 3a8236f40c2f028c8a7cff2abcf2d08c02eb598f577e71bedf8723841301c70cf0f8c0834d36fc1eff6b6a06dca0c6383d5e06e8bdfbed6b82ee747176ca9792
|
@@ -12,7 +12,8 @@ module Cats
|
|
12
12
|
|
13
13
|
has_ancestry
|
14
14
|
|
15
|
-
validates :name, :location_type, presence: true
|
15
|
+
validates :code, :name, :location_type, presence: true
|
16
|
+
validates :code, uniqueness: true
|
16
17
|
validates :location_type, inclusion: { in: LOCATION_TYPES }
|
17
18
|
validate :validate_location_parent
|
18
19
|
|
data/lib/cats/core/version.rb
CHANGED