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: 1c53856db0000e888ce0b385047256cd0876cf1fad3e65c2c664ed903eeea876
4
- data.tar.gz: 9d3511a92644e1e47fbbbc2a4a35a5bdce4ac4f3a7082fa4219d53a7638c8ec3
3
+ metadata.gz: ac7b129ad6e59c2caaa2d9d09cf4a41ac10f99ed13800c2a9e87dfd015202ae5
4
+ data.tar.gz: 5015865dbf2785bce72ba9722c0b1cfd6f83235537686c1ac636a2cb2fe87a34
5
5
  SHA512:
6
- metadata.gz: 86eed4e23e719d58de24cb8f6d641c9b9eb47a405e5a82204fe61a0464b3e6186eff9eab8812fe810fc38c44dd093ac05f3eca2539553ed8f43ada5b3ba72d14
7
- data.tar.gz: f1db1582acbcd9a073b4a346dac0d282f2262aeb31f680231fc189a2cdf73de9d63468f700848a392a0fc8927c56da61c3953db348f1edd36869b9f5e8fe0d29
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DatabaseConsistency
4
- VERSION = '0.7.0'
4
+ VERSION = '0.7.1'
5
5
  end
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.0
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-16 00:00:00.000000000 Z
11
+ date: 2019-06-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord