Category

Active Record Soft Delete

Keep deleted records in the database for auditing and restoring

paper_trail

3.78
Track changes to your models, for auditing or versioning. See how a model looked at any stage in its lifecycle, revert it to any version, or restore it after it has been destroyed.
 Popularity
Downloads
12,440,760
Stars
5,319
Forks
689
Watchers
69
 Releases
Current version
10.1.0
Total releases
105
First release
Latest release
 Activity
Issue Closure Rate
99%
Pull Request Acceptance Rate
74%
Average date of last 50 commits
within last 3 months
Reverse Dependencies
90

paranoia

2.59
Paranoia is a re-implementation of acts_as_paranoid for Rails 3, 4, and 5, using much, much, much less code. You would use either plugin / gem if you wished that when you called destroy on an Active Record object that it didn't actually destroy it, but just "hid" the record. Paranoia does this by setting a deleted_at field to the current time when you destroy a record, and hides it by scoping all queries on your model to only include records which do not have a deleted_at field.
 Popularity
Downloads
11,072,037
Stars
2,354
Forks
414
Watchers
34
 Releases
Current version
2.4.1
Total releases
32
First release
Latest release
 Activity
Issue Closure Rate
66%
Pull Request Acceptance Rate
49%
Average date of last 50 commits
within last 2 years
Reverse Dependencies
24

acts_as_paranoid

0.52
Check the home page for more in-depth information.
 Popularity
Downloads
905,607
Stars
997
Forks
145
Watchers
20
 Releases
Current version
0.6.0
Total releases
19
First release
Latest release
 Activity
Issue Closure Rate
61%
Pull Request Acceptance Rate
57%
Average date of last 50 commits
within last 2 years
Reverse Dependencies
5

rails3_acts_as_paranoid

0.32
Active Record (~>3.2) plugin which allows you to hide and restore records without actually deleting them. Check its GitHub page for more in-depth information.
 Popularity
Downloads
334,123
Stars
448
Forks
151
Watchers
21
 Releases
Current version
0.2.5
Total releases
8
First release
Latest release
 Activity
Issue Closure Rate
89%
Pull Request Acceptance Rate
44%
Average date of last 50 commits
more than 2 years ago
Reverse Dependencies
2

discard

0.2
Allows marking ActiveRecord objects as discarded, and provides scopes for filtering.
 Popularity
Downloads
177,856
Stars
617
Forks
28
Watchers
10
 Releases
Current version
1.0.0
Total releases
3
First release
Latest release
 Activity
Issue Closure Rate
54%
Pull Request Acceptance Rate
66%
Average date of last 50 commits
within last year
Reverse Dependencies
3

acts_as_archive

0.17
Don't delete your records, move them to a different table. Like acts_as_paranoid, but doesn't mess with your SQL queries.
 Popularity
Downloads
138,914
Stars
372
Forks
60
Watchers
8
 Releases
Current version
0.4.1
Total releases
16
First release
Latest release
 Activity
Issue Closure Rate
53%
Pull Request Acceptance Rate
33%
Average date of last 50 commits
more than 2 years ago
Reverse Dependencies
0

permanent_records

0.16
Never Lose Data. Rather than deleting rows this sets Record#deleted_at and gives you all the scopes you need to work with your data.
 Popularity
Downloads
358,885
Stars
222
Forks
53
Watchers
12
 Releases
Current version
4.2.7
Total releases
30
First release
Latest release
 Activity
Issue Closure Rate
71%
Pull Request Acceptance Rate
67%
Average date of last 50 commits
more than 2 years ago
Reverse Dependencies
0

destroyed_at

0.11
Safe destroy for ActiveRecord.
 Popularity
Downloads
44,397
Stars
355
Forks
24
Watchers
16
 Releases
Current version
2.1.0
Total releases
15
First release
Latest release
 Activity
Issue Closure Rate
85%
Pull Request Acceptance Rate
75%
Average date of last 50 commits
more than 2 years ago
Reverse Dependencies
0

expectedbehavior/acts_as_archival

0.06
An ActiveRecord plugin for atomic archiving and unarchiving of object trees. Inspired by ActsAsParanoid and PermanentRecord
 Popularity
Stars
73
Forks
13
Watchers
4
 Activity
Issue Closure Rate
75%
Pull Request Acceptance Rate
84%
Average date of last 50 commits
within last 2 years

soft_deletion

0.05
Explicit soft deletion for ActiveRecord via deleted_at and default scope.
 Popularity
Downloads
134,165
Stars
46
Forks
21
Watchers
4
 Releases
Current version
1.3.1
Total releases
41
First release
Latest release
 Activity
Issue Closure Rate
50%
Pull Request Acceptance Rate
78%
Average date of last 50 commits
within last 2 years
Reverse Dependencies
0

ajh/acts_as_soft_deletable

0.05
Rails plugin that provides the ability to soft delete models
 Popularity
Stars
70
Forks
9
Watchers
2
 Activity
Average date of last 50 commits
more than 2 years ago

immortal

0.04
Typical paranoid gem built for Rails 4 and with the minimum code needed to satisfy acts_as_paranoid's API
 Popularity
Downloads
38,539
Stars
60
Forks
16
Watchers
55
 Releases
Current version
3.0.0
Total releases
14
First release
Latest release
 Activity
Issue Closure Rate
37%
Pull Request Acceptance Rate
66%
Average date of last 50 commits
more than 2 years ago
Reverse Dependencies
0

paranoid2

0.02
paranoid models for rails 4
 Popularity
Downloads
75,931
Stars
26
Forks
6
Watchers
6
 Releases
Current version
1.1.5
Total releases
7
First release
Latest release
 Activity
Issue Closure Rate
50%
Pull Request Acceptance Rate
33%
Average date of last 50 commits
more than 2 years ago
Reverse Dependencies
0

paranoid

0.0
Enable soft delete of ActiveRecord records. Based off defunct ActsAsParanoid and IsParanoid
 Popularity
Downloads
14,975
 Releases
Current version
0.0.7
Total releases
6
First release
Latest release
 Activity
Reverse Dependencies
0