unreliable 0.9.0 → 0.9.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/unreliable/build_order.rb +5 -2
- data/lib/unreliable/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: 9b11225a3c1dad62d2a283c3eb36fef7b69fda61815df13a860ce9c1970016eb
|
4
|
+
data.tar.gz: 1994dd9ea21ba01dc839c56cc08ca91742465dc9b850c0b6a5eebbc81c7558a2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 145d5bbe8790fe4ee33bf4f0ea874350edf9655c2ebed35bfb3f18acb123d03efbe86c826dd0d9d4ca7ff12938c368e5cc4ebdc7afba224e0a8c12669a92e816
|
7
|
+
data.tar.gz: 2a3ca2dfa53cbf67a0f8a6b7128df829874409a698586c15d10746624a71a18eddc77914768ec5da361541aa54706bd1899f473aa1f6093ec839f689428b36ed
|
data/CHANGELOG.md
CHANGED
@@ -47,8 +47,11 @@ module Unreliable
|
|
47
47
|
end
|
48
48
|
|
49
49
|
def primary_key_columns(arel)
|
50
|
-
#
|
51
|
-
|
50
|
+
# primary_keys returns a String if it's one column, an Array if two or more.
|
51
|
+
# Using the SchemaCache minimizes the number of times we have to, e.g. in MySQL,
|
52
|
+
# SELECT column_name FROM information_schema.statistics
|
53
|
+
# (or in Rails < 6, SELECT column_name FROM information_schema.key_column_usage)
|
54
|
+
[ActiveRecord::Base.connection.schema_cache.primary_keys(arel.froms.first.name)].flatten
|
52
55
|
end
|
53
56
|
|
54
57
|
def order_columns(arel)
|
data/lib/unreliable/version.rb
CHANGED