jesjos / active_record_upsert

Upsert for Rails 5 / Active Record 5
MIT License
207 stars 51 forks source link

Add where option when setting upsert keys #60

Closed danielcooper closed 6 years ago

danielcooper commented 6 years ago

Adds a where condition when specifying upset keys.

This allows for conflict resolution using a partial index.

jesjos commented 6 years ago

Can you check the failing tests?

olleolleolle commented 6 years ago

whoop whoop

danielcooper commented 6 years ago

Yeah, sorry - we built this on a fork from a couple of versions ago.