# ActsAsParanoid/acts_as_paranoid

ActiveRecord plugin allowing you to hide and restore records without actually deleting them.

Repository: https://github.com/ActsAsParanoid/acts_as_paranoid
Canonical: https://ross.abutalabs.com/products/acts_as_paranoid
Language: Ruby
License: MIT
License Family: permissive
Last push: 2026-08-14T07:02:36+00:00

## Health v2 (maintenance only)
Score: 76/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 97, release rhythm 35, longevity 100
- inputs: {"age_days": 6756, "days_push": 19, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1508, forks 194 (observed 2026-08-28T04:04:55.498880+00:00)

## What it is
A Ruby on Rails plugin that adds soft-delete functionality to ActiveRecord models, hiding records instead of deleting them so they can be restored later. It works via a configurable deleted_at column and provides scopes to query deleted or non-deleted records.

## Use cases
- soft delete records in rails
- recover deleted database records
- hide records without actually deleting them
- add deleted_at column to activerecord models
- query only deleted records
- restore soft-deleted rows
- implement trash/undo for rails models

## When to choose
- you use Rails 6.1+ with ActiveRecord and need recoverable deletions
- you want a simple, mature soft-delete gem with time-window scopes
- you need configurable deletion column types (boolean, time, string)

## When to avoid
- your models use ActiveStorage (known SystemStackError issue)
- you need to create models in a deleted state or update them after deletion
- you're on Rails 6.0 or Ruby 3.0 or earlier
- you need hard-delete guarantees for compliance/privacy

## Facets
- artifact type: library
- maturity: active
- function: orm, database, plugin-system
- domain: databases, web-development, backend, developer-tools
- platform: ruby, jvm
- tags: soft-delete, activerecord, rails-plugin, data-recovery, paranoid-deletion, web-server

## Member repositories
- ActsAsParanoid/acts_as_paranoid (main) score 76

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:55.498880+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:32:30.772205+00:00, confidence not recorded.
  - readme: https://github.com/ActsAsParanoid/acts_as_paranoid (fetched 2026-08-28T04:04:55.498880+00:00, sha 2a441a19ac6d)
- Data as of 2026-08-30T08:39:29.467469+00:00.
