ankane / lockbox

Modern encryption for Ruby and Rails
MIT License
1.44k stars 68 forks source link

upsert and upsert_all support for ActiveRecord #165

Closed x9sim9 closed 1 year ago

x9sim9 commented 1 year ago

We have recently migrated a project to lockbox, during the migration we realised that lockbox does not work with upsert and upsert_all

Without this support we have to find and update which has a massive performance issues with large records.

Is there any chance this could be looked at?

ankane commented 1 year ago

Hey @x9sim9, thanks for the suggestion! Added support in the commit above.