torque-postgresql 0.2.15 → 0.2.16
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/torque/postgresql/inheritance.rb +2 -2
- data/lib/torque/postgresql/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b6b3476419620f407fcfbfedf49a8e14b14673c4
|
4
|
+
data.tar.gz: 086f8999ac9c845a3c794a225ee170e0af593f26
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bc22219a6090c31d8c4192de419d49e073cfc470391f0f39c18b223f33cfd788f0d5b332e26c71f5a4d0b117c61e62d29a3741e5414e0e4c56f3d59493eef75b
|
7
|
+
data.tar.gz: 87838a9c5454a50140d8221099a9f0dce25ae9ab808a1dd7f7d1304e0b1f8b336aa48db83ea12a83d78fa4dc99b9dc20d84013da017d80153a2ca847c15588cc
|
@@ -39,11 +39,11 @@ module Torque
|
|
39
39
|
|
40
40
|
# Check if the model's table depends on any inheritance
|
41
41
|
def physically_inherited?
|
42
|
-
return false unless connected?
|
43
|
-
|
44
42
|
@physically_inherited ||= connection.schema_cache.dependencies(
|
45
43
|
defined?(@table_name) ? @table_name : decorated_table_name,
|
46
44
|
).present?
|
45
|
+
rescue ActiveRecord::ConnectionNotEstablished
|
46
|
+
false
|
47
47
|
end
|
48
48
|
|
49
49
|
# Get the list of all tables directly or indirectly dependent of the
|