abstract_importer 1.5.5 → 1.5.6
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2273e7488017981f0caa7c51ae1bfc7fa2bf8dd3
|
4
|
+
data.tar.gz: 0b2cf66310053405eace82238f10bc42b8af8dbf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1d72f4017de21ff358da2f080289cb470b695ac0ee404bf2cd0a3fc6d04b71e1eb8ae38b3d3f98a93b574cd77737ffab17d3f63d1d4e30117c9e2edf18ff7d15
|
7
|
+
data.tar.gz: fc0233f350e80133e8e699a17a95217a546b1de174baf7680ad925fde166a7637733ab509d6bf0bf174547038f54d496bfece1e9a55b6f9260514ca23791e81c
|
@@ -7,7 +7,7 @@ module AbstractImporter
|
|
7
7
|
|
8
8
|
def initialize(collection, options={})
|
9
9
|
super
|
10
|
-
@insert_options.
|
10
|
+
@insert_options.reverse_merge!(on_conflict: { column: remap_ids? ? (association_attrs.keys + [:legacy_id]) : :id, do: :update })
|
11
11
|
end
|
12
12
|
|
13
13
|
# We won't skip any records for already being imported
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: abstract_importer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.
|
4
|
+
version: 1.5.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bob Lail
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-09-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|