database_consistency 1.7.19 → 1.7.20

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: 43676fecc34589198204d39c8f3e1b1a46b6a616fb5c226ee368a009e84cab24
4
- data.tar.gz: 53980d4481038860da1dd9c673d83b54b4cd5eddd2e98224a0772217dae66d10
3
+ metadata.gz: 4b23b01d53d9091689967b91ddaf1439ec1397391646ce775bfa4ead5ca2142f
4
+ data.tar.gz: fc0aa913897643ffb50aa5f8907606c2e592bd3c84ae407b1d9664bc425ae953
5
5
  SHA512:
6
- metadata.gz: ff3b416001fee6e744e60ae1a199e74ce7fc4f5e14259cfac8114dab4246d4ca869e545dfe7c3ebee31efc5346c954736fa38606035b7526d7fbe0095aeff152
7
- data.tar.gz: 8daea1d6b71e9ec2c2a8089a22bce987b1d0e3237cc4d61130cb59fb721d3f0b39b2f8ee094f489ccab5349c6c6ffbf9832be3d40062ade2b03dce7faafd054f
6
+ metadata.gz: 7132db37d4d683daead886e87d915763e06a268a387bbaab01cf08ec4a518498644c2ad49ef271ce99976a591bfa31e5beb9067bbeec5faf352a0a03c9cd4ca6
7
+ data.tar.gz: a57787aa6b06ffc4762e62b97e38f1fb92841b0e54ed5846e22a0179c5208982d1bd14a29b3a7a0d278944802b3af4c4d683c958842c5cdd9b908d94f653157d
@@ -38,7 +38,9 @@ module DatabaseConsistency
38
38
  # Returns list of models to check
39
39
  def models
40
40
  project_models.select do |klass|
41
- !klass.abstract_class? && !klass.name.include?('HABTM_')
41
+ !klass.abstract_class? &&
42
+ klass.connection.table_exists?(klass.table_name) &&
43
+ !klass.name.include?('HABTM_')
42
44
  end
43
45
  end
44
46
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DatabaseConsistency
4
- VERSION = '1.7.19'
4
+ VERSION = '1.7.20'
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.19
4
+ version: 1.7.20
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-08-17 00:00:00.000000000 Z
11
+ date: 2023-08-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord