# Place this in your lib folder
# Include it in your model
# Add a migration with a deleted_at timestamp column for that model
# and voila your records are now logically destroyed.
default_scope where(:deleted_at => nil)
self.deleted_at = Time.now