dynamic-active-model 0.14.0 → 0.15.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/dynamic-active-model/associations.rb +2 -1
- data/lib/dynamic-active-model/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5468ad59b7da403c75eaeea91839ab93312fd23926b610b8b685b163a03a49d0
|
|
4
|
+
data.tar.gz: 5c45252cb46c75a4f75bc747ffc25e202bbff46e8298242628a2b3a31fbcdd68
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 657ed0516fbfbe5749f932e9a12c99bafb76ae144481a449a23d838e5e444995a98a0271774e11d0b499dd76dbcb52ecca65bf54578fd2e5bc0553bfce8e604f
|
|
7
|
+
data.tar.gz: eaecc967016f174a47ca3fdc5630dab9c9f3173b68d6e0e2d876c0c76952c29c9c968081161c46369c119908472fadc4c2221334b6997a166b201db6498c0db3
|
|
@@ -36,7 +36,8 @@ module DynamicActiveModel
|
|
|
36
36
|
@foreign_keys = {}
|
|
37
37
|
database.models.each do |model|
|
|
38
38
|
@foreign_keys[model.table_name] = ForeignKey.new(model)
|
|
39
|
-
|
|
39
|
+
# through the schema cache, so a Rails schema cache dump spares one query per table
|
|
40
|
+
@table_indexes[model.table_name] = model.connection.schema_cache.indexes(model.table_name)
|
|
40
41
|
@join_tables << model if join_table?(model)
|
|
41
42
|
end
|
|
42
43
|
end
|