database_consistency 0.7.0 → 0.7.1
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: ac7b129ad6e59c2caaa2d9d09cf4a41ac10f99ed13800c2a9e87dfd015202ae5
|
4
|
+
data.tar.gz: 5015865dbf2785bce72ba9722c0b1cfd6f83235537686c1ac636a2cb2fe87a34
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c6d3f99b6d187c74f9c9be5b91f8395bf74a161466914271987e316e99424b914dde2f46e434faaa05939954c62f69345039fe6db0bd58b1fb47225bb0e6ac66
|
7
|
+
data.tar.gz: fb98a2c911f021203a97482e3e7df30e71c809a187f58beeee4f8b5759533d8557ad1e99ad30950382e36c0f53740be837cbff96166dbff8feb7819e80729aa9
|
@@ -20,8 +20,9 @@ module DatabaseConsistency
|
|
20
20
|
|
21
21
|
# We skip check when:
|
22
22
|
# - column hasn't limit constraint
|
23
|
+
# - column insn't string nor text
|
23
24
|
def preconditions
|
24
|
-
!column.limit.nil?
|
25
|
+
!column.limit.nil? && %i[string text].include?(column.type)
|
25
26
|
end
|
26
27
|
|
27
28
|
# Table of possible statuses
|
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: 0.7.
|
4
|
+
version: 0.7.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Evgeniy Demin
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-06-
|
11
|
+
date: 2019-06-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|