# rubysherpas/paranoia

acts_as_paranoid for Rails 5, 6 and 7

Repository: https://github.com/rubysherpas/paranoia
Canonical: https://ross.abutalabs.com/products/paranoia
Language: Ruby
License: NOASSERTION
License Family: other
Last push: 2025-11-07T11:11:54+00:00

## Health v2 (maintenance only)
Score: 57/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 51, release rhythm 40, longevity 100
- inputs: {"age_days": 5834, "days_push": 299, "days_rel": 591, "gap_med": 0, "n_releases_24m": 2}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2915, forks 523 (observed 2026-08-28T04:07:29.972824+00:00)

## What it is
Paranoia is a Ruby gem that adds soft-delete functionality to Rails ActiveRecord models via acts_as_paranoid, hiding records by setting a deleted_at timestamp instead of destroying them. It is a reimplementation of acts_as_paranoid for Rails 5, 6, and 7 that accepts only bug fixes, not new features.

## Use cases
- soft delete records in a rails app
- hide deleted rows instead of removing them from the database
- restore soft-deleted activerecord records
- add deleted_at timestamp column to models
- cascade soft deletes through dependent associations

## When to choose
- you maintain an existing Rails app already using acts_as_paranoid or paranoia
- you need soft deletes with ActiveRecord query scoping in Rails 5-7
- you want dependent associations to be soft-deleted along with their parent

## When to avoid
- you are starting a new project - the README recommends discard instead
- you need active development or new features
- you dislike ActiveRecord delete/destroy being overridden

## Facets
- artifact type: library
- maturity: maintenance
- function: orm, database
- domain: web-development, databases, developer-tools
- platform: ruby, jvm
- tags: soft-delete, activerecord, rails-gem, acts-as-paranoid

## Member repositories
- rubysherpas/paranoia (main) score 57

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:29.972824+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-30T07:34:07.106133+00:00, confidence not recorded.
  - readme: https://github.com/rubysherpas/paranoia (fetched 2026-08-28T04:07:29.972824+00:00, sha f50396d643e5)
- Data as of 2026-08-30T08:39:29.467469+00:00.
