Ruby on Rails: Deleting data models without deleting from database

Act as paranoid is a great little gem if you want to keep your models to hang around for audit purposes till some later process clears it out. Calling ActiveRecord.destroy first time removes it from all queries and the next destroy removes it from the database entirely. Fantastic. Rails 3.2 compatible.


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *