deimos-ruby 2.1.5 → 2.1.6
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/CHANGELOG.md +4 -0
- data/lib/deimos/active_record_consume/batch_record_list.rb +3 -4
- data/lib/deimos/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: 83e7562bf4350bb2a223a8aaa6c4ad710c2c20741b39a8349132f4bac131100c
|
4
|
+
data.tar.gz: 5238a10a42512e0588c3295c2aea72888a203012906967f1c9aec71059123db9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 73bd43e24c3d2ff030ee3e09c572e68f18fb41da135df627d13e8298de2a888c3a69e7a4e7f51d15f6a687c01c26a5858724118dc4ea156033c5ec4fba01be8a
|
7
|
+
data.tar.gz: cd177bc3f323848882a1a31c9d1bdb526c8e75f21ce10f78361927cd6d9bce3eeb0bc3b30646f3e9f6112bd3dc256d279c91d6519f756c088a2d46e081140fbc
|
data/CHANGELOG.md
CHANGED
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
7
7
|
|
8
8
|
## UNRELEASED
|
9
9
|
|
10
|
+
# 2.1.6 - 2025-07-23
|
11
|
+
|
12
|
+
- Fix: Allows rails to handle querying bulk_import_id when replacing associations for non-string bulk_import_ids
|
13
|
+
|
10
14
|
# 2.1.5 - 2025-07-23
|
11
15
|
|
12
16
|
- Fix: Schema classes with required fields caused a crash in the `Deimos.schema_backend` method.
|
@@ -76,10 +76,9 @@ module Deimos
|
|
76
76
|
return if self.batch_records.none?
|
77
77
|
|
78
78
|
primary_keys = self.primary_keys(assoc.name)
|
79
|
-
assoc.klass.
|
80
|
-
where(
|
81
|
-
|
82
|
-
delete_all
|
79
|
+
assoc.klass.where(assoc.foreign_key => primary_keys).merge(
|
80
|
+
assoc.klass.where.not(self.bulk_import_column => import_id)
|
81
|
+
).delete_all
|
83
82
|
end
|
84
83
|
|
85
84
|
end
|
data/lib/deimos/version.rb
CHANGED