activerecord-import icon indicating copy to clipboard operation
activerecord-import copied to clipboard

A library for bulk insertion of data into your database using ActiveRecord.

Results 36 activerecord-import issues
Sort by recently updated
recently updated
newest added

When primary key is of type `uuid`, we're getting a non-null violation for column `ID` (using postgres) especially when using `on_duplicate_key_update`, but only when *some* records in the array have...

Hi 👋 I'm trying to insert multiple new records with a `has_many` association but it seems like it's not working correctly in this case ```ruby class Vehicle < ActiveRecord::Base has_many...

I use activerecord-import in Sidekiq worker and if I call worker by .perform_async then I get this result: `#` but if I call worker by .new.perform then I get this...

We have a model where the `import` behavior is inconsistent in populating an `enum` value with the `INSERT INTO` statement where sometimes it has it, and other times it does...

Hi there, I was recently trying to do something like ``` things = Thing.where(attr: 'baz').each { |t| t.other_attr = 'bar' } Thing.import(things) ``` and was confused about why I was...

## Issue Documentation needs to call out the actual working of `:synchronize`. ## Example Let's say we have a ActiveRecord model `Item` and we are using something like: ``` ruby...