ActsAsParanoid / acts_as_paranoid

ActiveRecord plugin allowing you to hide and restore records without actually deleting them.
MIT License
1.46k stars 191 forks source link

Recover when junction table record exists rather than creating a new one #270

Open traineira opened 2 years ago

traineira commented 2 years ago

Is there a way to recover a deleted record that matches the two primary keys rather than creating a new record with the exact same values, but deleted_at set as NULL?