database_consistency 1.7.0 → 1.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: 8049cc73c646f8be58c7f7b3491a0dc02f55f3c75eac32803b850f8c272d11fa
4
- data.tar.gz: fdf3df62bb8df2995889a5c717e22fb437260ebfd77d0bd80bdb5d7b9f90494a
3
+ metadata.gz: 66ce7a52d5ba8e97db7d362d92c6a40df067f6fbab3945aa0f97ec80017ed265
4
+ data.tar.gz: 52b9314bb94e5664cfe791535596ad1de1055e378a37dd0b9f909d595c633a51
5
5
  SHA512:
6
- metadata.gz: e05dcd8d5f1dc062e482a7028f2e10c3232377f1fb7c44609ea41fffb9f14fb3a331db407a693fe5ffe1c0f69d0105e3c39b65166210a6ded5365a1e239ebb50
7
- data.tar.gz: 4dba6ecf15c4f3b6ae3553c28873e23ef77b930a4275124f14b9dfae8b84cb8bfee53033fc4f84a573064c1ebd9b702bb32dddf0fa66c8838e373bb0a372f8ee
6
+ metadata.gz: c72b8c701d2e90e4fd981c27a63b6a1369f10af8c51021006cb78bf19d92f24d280c36cbb4654db8929c3f26069769fa8fd23145c444a2fe565dacadadbed7cc
7
+ data.tar.gz: 763b0564fe4d78619e5d0ba0245837dbf74634f9480237b1b68f47f04ae5be3dfa2c943aa9da6257ec7b2b6159e1dfef6772a12ca656a3d7de45d916f4c6b10c
@@ -24,7 +24,7 @@ module DatabaseConsistency
24
24
  end
25
25
 
26
26
  def preconditions
27
- Helper.postgresql? && column.type == :enum && (enum || inclusion_validator)
27
+ Helper.postgresql? && ActiveRecord::VERSION::MAJOR >= 7 && column.type == :enum && (enum || inclusion_validator)
28
28
  end
29
29
 
30
30
  def check
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DatabaseConsistency
4
- VERSION = '1.7.0'
4
+ VERSION = '1.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: 1.7.0
4
+ version: 1.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: 2022-12-05 00:00:00.000000000 Z
11
+ date: 2022-12-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord