Restrict activerecord-import to update only

1.9k views Asked by At

I'm using activerecord-import to bulk update a single field on existing records.

While I am learning how to use the gem. Is there a way to restrict so nothing ever gets created?

I'm currently using the import = klass.import columns, records, on_duplicate_key_update: [:amount], validate: true however somehow I am getting records created with blank values.

0

There are 0 answers