Skip to content

Fix bulk insert for models with composite primary keys

Igor Drozdov requested to merge id-fix-insert-all-for-composite-keys into master

What does this MR do?

ActiveRecord doesn't support composite primary keys, so changes to bulk insertion became the breaking ones: https://github.com/rails/rails/blob/6-1-stable/activerecord/CHANGELOG.md

Let's pass the explicit unique_by in order to fix it.

Merge request reports

Loading