Closed dorner closed 1 year ago
This may have to wait for Rails 6.1 to release. There's a bug that was fixed after 6.0 was out that prevents you from using the primary key as one of the matching criteria.
Fixed here on master: https://github.com/rails/rails/commit/1af44e4aeeb04a6360b5104d8ee7b4a042ef93d8
Sounds good - no rush on this one.
Doesn't look like this supports on_duplicate_key_update
, so we can't actually do this.
Currently we're using activerecord-import for the DB producer. We should detect if the app is on Rails 6 and use
insert_all
- this will remove the dependency for activerecord-import for newer apps.