Paranoia is a soft-delete library for Rails ActiveRecord models, replacing destructive deletes with timestamped soft-deletes.
Records are not actually removed from the database; instead, they are flagged with a deleted_at timestamp, allowing them to be restored if needed.
The gem provides data recovery and auditability, however, there may be potential performance issues if overused in high-volume tables.
Records are not actually removed from the database; instead, they are flagged with a deleted_at timestamp, allowing them to be restored if needed.
The gem provides data recovery and auditability, however, there may be potential performance issues if overused in high-volume tables.