database_consistency 1.7.8 → 1.7.9

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: b117faf2434c91f017d6c1fd66af9b60dd39a320eb483d8c55dafa4870a79458
4
- data.tar.gz: 4a9adb41296cad3b8c091b0bd62a4c5affa320e26c69fe8c68affc20cc7ea44e
3
+ metadata.gz: 199d6a4e4c313048e4e1abf5e980fec96d4703704a837024fbb6e507ab36bc7f
4
+ data.tar.gz: db33237e3cc031b90ebae5001a4d99b5c398f6a2324d6016275b8501b2f39e10
5
5
  SHA512:
6
- metadata.gz: bddbe6952f4e66a77108d01e016f452e016bbb43dceafc6e8c666e92426c06e3d7d8f65a0bfa8d4253e3eacb81f9eee71364e5a5fe1c82941d6dd9ab90d70243
7
- data.tar.gz: 4466ef032c16a72a174ffd030347ed96a914bbc3cf844d930b22afadb938782da8074fe142f6fca36933c2a2e241ddb57041f33ebef19b45e7b1b5f0edeeacf3
6
+ metadata.gz: 30639e1cfed1a67db161d01dcd1fd8d1f2511fcb062bebb9371a9a690d2054ae5936fb13a0a158db26c2bcb60b89560c1fd17a936c402ae72e62a7c611a732ee
7
+ data.tar.gz: 6b891e83dd31d2a9fcfb76ac53d3aa1186e203daebb27c252084cf7208cfa0c3f091dbbe92cb63cb98b0dc48f2939718b6fc85a9f72430e79a9882799c6b1a94
@@ -27,8 +27,9 @@ module DatabaseConsistency
27
27
 
28
28
  # Returns list of models to check
29
29
  def models
30
- ActiveRecord::Base.descendants.delete_if(&:abstract_class?).select do |klass|
31
- klass.connection.table_exists?(klass.table_name) &&
30
+ ActiveRecord::Base.descendants.select do |klass|
31
+ !klass.abstract_class? &&
32
+ klass.connection.table_exists?(klass.table_name) &&
32
33
  !klass.name.include?('HABTM_') &&
33
34
  project_klass?(klass)
34
35
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DatabaseConsistency
4
- VERSION = '1.7.8'
4
+ VERSION = '1.7.9'
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.8
4
+ version: 1.7.9
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-05-01 00:00:00.000000000 Z
11
+ date: 2023-06-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord