Fix bulk insert for models with composite primary keys
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.