High Performance PostgreSQL for Rails: Suggest discard instead of acts_as_paranoid (page 102)


In the book, you make a reference to acts_as_paranoid, but given the simplicity and popularity: Category: Active Record Soft Delete - The Ruby Toolbox

I would suggest you to mention discard instead. Also, acts_as_paranoid has incompatibility issues with ActiveStorage: GitHub - ActsAsParanoid/acts_as_paranoid: ActiveRecord plugin allowing you to hide and restore records without actually deleting them.

1 Like

Hi Fidalgo. I like your suggestion. Thanks for proposing it. Perhaps instead of the specific gem, it would work better to link to the category of “soft delete” gems. Thanks for reading the book and for your feedback!