database_consistency 1.5.0 → 1.5.2

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: 24c245f8df70e4e98c102b52a56ead68364ba0613a67d1d60d499c36ddfae5b2
4
- data.tar.gz: c1d8ce538657703f75a56f3fa462922ddbc5176d328e94665c83f71fd92bb3ed
3
+ metadata.gz: 007b8fe2bddf76beb68b7b8f1aad6d2ccfd54619a52d359c243af7b52138c92a
4
+ data.tar.gz: 7de86e161f98d852944dc499358c774bc5cb66e9c57f75c32a3b6cc7470e445c
5
5
  SHA512:
6
- metadata.gz: 00614cf53933e47d9599698d6b412294446b50c6757ea042374247b2b400b4fec12743d00a02401040630e9912aee54fa65e472a4d683e5a2116e93e5f7f48a6
7
- data.tar.gz: 5b87a53b2566b6892920ff883909f0a3ae871f137c8ed482b85fdc1a4ece3bd83eb1f68218a391a75dbdfa977a66cd2a34e9eb33810083a024039ccd636ff833
6
+ metadata.gz: 3a340470481bc101839adaa2b144c4ed1862477739b8432d3610e0249299051997dd2ff066af606ac8dd56b1e53706369a753c38a9c30f719acad2add5483dc4
7
+ data.tar.gz: 9bb40d5e967f4f5f75863ea3f6b57df96d22152d3453b0c4e394deaacb7e293a4905911fb21974dbdb465352d04b76676531b2318b1ca25226420ffc09d0fc2b
@@ -39,7 +39,7 @@ opt_parser = OptionParser.new do |opts|
39
39
  options[:todo] = true
40
40
  end
41
41
 
42
- opts.on('-fix', '--autofix', 'Automatically fixes issues by adjusting the code or generating missing migrations.') do
42
+ opts.on('-f', '--autofix', 'Automatically fixes issues by adjusting the code or generating missing migrations.') do
43
43
  options[:autofix] = true
44
44
  end
45
45
 
@@ -21,7 +21,7 @@ module DatabaseConsistency
21
21
  has_one
22
22
  has_many
23
23
  ].include?(association.macro) && association.through_reflection.nil? && association.klass
24
- rescue NameError
24
+ rescue StandardError
25
25
  false
26
26
  end
27
27
 
@@ -37,7 +37,7 @@ module DatabaseConsistency
37
37
 
38
38
  def column_type_converter(type)
39
39
  case type
40
- when 'string' then String
40
+ when 'string', 'enum' then String
41
41
  when 'integer' then Integer
42
42
  when 'decimal' then BigDecimal
43
43
  when 'date' then Date
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DatabaseConsistency
4
- VERSION = '1.5.0'
4
+ VERSION = '1.5.2'
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.5.0
4
+ version: 1.5.2
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-11-28 00:00:00.000000000 Z
11
+ date: 2022-11-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord