Active Record Soft Delete

paranoia

Paranoia is a re-implementation of acts_as_paranoid for Rails 3, 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.

Rubygem paranoia

Total Downloads
213117
Releases
14
Current Version
1.3.3
Released
2014-01-16 00:00:00 UTC
First Release
2010-10-06 13:00:00 UTC
Depends on following gems
Depending Gems
2

Github radar/paranoia

Watchers
432
Forks
132
Development activity
Less active
Last commit
2014-04-10 23:18:12 UTC
First commit

rails3_acts_as_paranoid

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.

Rubygem rails3_acts_as_paranoid

Total Downloads
179242
Releases
8
Current Version
0.2.5
Released
2012-12-09 00:00:00 UTC
First Release
2012-03-06 00:00:00 UTC
Depends on following gems
Depending Gems
3

Github goncalossilva/rails3_acts_as_paranoid

Watchers
327
Forks
150
Development activity
Inactive
Last commit
2013-05-23 07:53:54 UTC

Acts as paranoid

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.

Rubygem acts_as_paranoid

Total Downloads
179046
Releases
10
Current Version
0.4.2
Released
2013-05-23 00:00:00 UTC
First Release
2005-09-18 04:00:00 UTC
Depends on following gems
Depending Gems
5

Github technoweenie/acts_as_paranoid

Watchers
389
Forks
61
Development activity
Inactive
Last commit
2011-01-12 19:16:20 UTC
Contributors
8
Issues
Wiki pages

Acts as archive

Don't delete your records, move them to a different table. Like acts_as_paranoid, but doesn't mess with your SQL queries.

Rubygem acts_as_archive

Total Downloads
100809
Releases
16
Current Version
0.4.1
Released
2011-11-21 00:00:00 UTC
First Release
2009-11-06 11:00:00 UTC
Depends on following gems
Depending Gems
0

Github winton/acts_as_archive

Watchers
369
Forks
73
Development activity
Inactive
Last commit
2013-01-07 20:10:48 UTC
Top contributors
Contributors
7
Issues
Wiki pages

Permanent records

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.

Rubygem permanent_records

Total Downloads
71634
Releases
18
Current Version
3.1.6
Released
2013-08-19 00:00:00 UTC
First Release
2009-09-26 10:00:00 UTC
Depends on following gems
Depending Gems
1

Github JackDanger/permanent_records

Watchers
152
Forks
41
Development activity
Less active
Last commit
2013-12-15 18:14:49 UTC

destroyed_at

Safe destroy for ActiveRecord.

Rubygem destroyed_at

Total Downloads
4536
Releases
10
Current Version
0.4.0
Released
2014-04-11 00:00:00 UTC
First Release
2013-06-28 00:00:00 UTC
Depending Gems
0

Github dockyard/destroyed_at

Watchers
307
Forks
10
Development activity
Less active
Last commit
2014-04-11 19:29:59 UTC
First commit

Acts as soft deletable

Rails plugin that provides the ability to soft delete models

Github ajh/acts_as_soft_deletable

Watchers
72
Forks
12
Development activity
Inactive
Last commit
2009-03-29 00:29:15 UTC
Top contributors
Contributors
2

immortal

Typical paranoid gem built for Rails 3 and with the minimum code needed to satisfy acts_as_paranoid's API

Rubygem immortal

Total Downloads
24229
Releases
12
Current Version
1.0.5
Released
2011-10-18 00:00:00 UTC
First Release
2010-12-16 23:00:00 UTC
Depends on following gems
Depending Gems
0

Github teambox/immortal

Watchers
59
Forks
17
Development activity
Inactive
Last commit
2014-02-12 12:01:01 UTC
First commit
Contributors
6
Issues
Wiki pages

acts_as_archival

An ActiveRecord plugin for atomic archiving and unarchiving of object trees. Inspired by ActsAsParanoid and PermanentRecord

Github expectedbehavior/acts_as_archival

Watchers
34
Forks
8
Development activity
Less active
Last commit
2013-05-23 06:11:48 UTC
Contributors
7
Issues

soft_deletion

Explicit soft deletion for ActiveRecord via deleted_at and default scope.

Rubygem soft_deletion

Total Downloads
32709
Releases
28
Current Version
0.5.6
Released
2013-11-13 00:00:00 UTC
First Release
2012-05-02 00:00:00 UTC
Depends on following gems
Depending Gems
0

Github grosser/soft_deletion

Watchers
22
Forks
7
Development activity
Less active
Last commit
2013-11-13 23:56:39 UTC
First commit

paranoid

Enable soft delete of ActiveRecord records. Based off defunct ActsAsParanoid and IsParanoid

Rubygem paranoid

Total Downloads
8292
Releases
6
Current Version
0.0.7
Released
2010-09-10 04:00:00 UTC
First Release
2010-02-18 05:00:00 UTC
Depends on following gems
Depending Gems
0

Github xspond/paranoid

Watchers
14
Forks
9
Development activity
Inactive
Last commit
2010-09-10 19:53:20 UTC
Top contributors
Contributors
0
Issues

paranoid2

paranoid models for rails 4

Rubygem paranoid2

Total Downloads
3996
Releases
7
Current Version
1.1.5
Released
2014-04-14 00:00:00 UTC
First Release
2013-01-05 00:00:00 UTC
Depends on following gems
Depending Gems
0

Github anjlab/paranoid2

Watchers
11
Forks
1
Development activity
Less active
Last commit
2014-04-14 20:48:11 UTC
First commit
Top contributors
Contributors
2
Issues
×

In order to continue, you must be signed in using your Github account.

If you're signing in using this account for the first time Github will ask for your permission to give access to your public user data to the Ruby Toolbox.

Although the Github Authorization page does not mention it, the request includes read-only access to your verified email address (user:email OAuth scope). This is neccessary so there's a way to notify you about comments, information about your accepted project edits and the like. You can review your notification settings on your account page once you're signed in.