uuid_associations-active_record 0.3.1 → 0.3.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cc4dca3626a286c4c6048fd1dd954d638940f118ce985653085d70065e4dd19a
|
4
|
+
data.tar.gz: 622fa1cda9689a44e7b46683c14535982d0aabe72af8faf6ee66c1106468d0df
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ec7e00fb8ac08c0de6ecf62961c6025c48089cc4e98c390e1d98c7d6436a5feb4b87d2eaa4049e4be56be7b6021ae756baef7e0c42d5c69cc4dd7d32848956d5
|
7
|
+
data.tar.gz: 7c5c2cf86ee98f13d5610083fffa27b2adeeab05372e91895058873620e302c74797ac86f4682238c0f63a9ac31cdf2afbf750f6a0f889e424b07b4c1e3e3760
|
@@ -34,6 +34,8 @@ module UuidAssociations
|
|
34
34
|
end
|
35
35
|
|
36
36
|
def uuid_column?(association_class_name)
|
37
|
+
return false unless ::ActiveRecord::Base.connected?
|
38
|
+
|
37
39
|
table_name = table_name_from_class_name(association_class_name)
|
38
40
|
return false unless ::ActiveRecord::Base.connection.tables.include?(table_name)
|
39
41
|
|