database_consistency 1.7.21 → 1.7.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fa19d97c8acb835f248d400cf2083c32e8aa409c65155d997710d9bc2cda0c59
|
4
|
+
data.tar.gz: a598e7238e279205af65c4101b0f8773bb90b6b816bed18850892a8d9cca4a0f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fb372c25d9da1c239739fbc4688f98f853ae8e17fd7ac238f8eeb4b359bbd5314d0a74eadeb38e783cf3ab383f38fb0762adfd956cc392879d03b1db5d68ac8a
|
7
|
+
data.tar.gz: 0af3245696790d32ac16cf805038b110e8788390c3162646fcc4fb9f2e85bc343aab8db801decbcaa209bf6cf3a2db0f1f968c99bc0a016f8582e67752b56dfc
|
@@ -44,7 +44,7 @@ module DatabaseConsistency
|
|
44
44
|
def verify_enum
|
45
45
|
values = enum.values.uniq
|
46
46
|
|
47
|
-
if enum_column_values == values
|
47
|
+
if enum_column_values.sort == values.sort
|
48
48
|
report_template(:ok, values)
|
49
49
|
else
|
50
50
|
report_template(:fail, values, error_slug: :enum_values_inconsistent_with_ar_enum)
|
@@ -54,7 +54,7 @@ module DatabaseConsistency
|
|
54
54
|
def verify_inclusion_validator
|
55
55
|
values = validator_values(inclusion_validator).uniq
|
56
56
|
|
57
|
-
if enum_column_values == values
|
57
|
+
if enum_column_values.sort == values.sort
|
58
58
|
report_template(:ok, values)
|
59
59
|
else
|
60
60
|
report_template(:fail, values, error_slug: :enum_values_inconsistent_with_inclusion)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: database_consistency
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.7.
|
4
|
+
version: 1.7.23
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Evgeniy Demin
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-12-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|