switchman 1.5.14 → 1.5.15
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/switchman/active_record/query_methods.rb +1 -1
- data/lib/switchman/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: bd0d33eb675d2b10b4c3f4c58cd70664fffc02d9
|
4
|
+
data.tar.gz: ceb9f08769064d7c046b79c2d4570680d835302a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bb26c88cfc2df081bdfc3d3ca9e2f3fb0c683f5a1ea5f9174229de2f0f4a6b2c23397f061711db2c6a02a5a718f1d91c1ffda9c627f3264cd443d7d4697587ed
|
7
|
+
data.tar.gz: d8d0e4ce64c6e80d4f8df2c47f770947eaeb2f0e10b06e34ca265ee2642d5b87d5a03ec9a900a1d75f3c3b45c1f4285cd0e8074d8ccfbc050d1b1d10ddc0b4d5
|
@@ -228,7 +228,7 @@ module Switchman
|
|
228
228
|
def sharded_primary_key?(relation, column)
|
229
229
|
column = column.to_s
|
230
230
|
return column == 'id' if relation.model == ::ActiveRecord::Base
|
231
|
-
relation.model.primary_key == column
|
231
|
+
relation.model.primary_key == column && relation.model.integral_id?
|
232
232
|
end
|
233
233
|
|
234
234
|
def source_shard_for_foreign_key(relation, column)
|
data/lib/switchman/version.rb
CHANGED