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

@andatki

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!

Hi @fidalgo. Following up to let you know that I replaced the reference to acts_as_paranoid with a link to the Ruby Toolbox “Active Record Soft Delete” category.

https://www.ruby-toolbox.com/categories/Active_Record_Soft_Delete

Thanks again for the suggestion.

1 Like