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
856989
Releases
21
Current Version
2.1.1
Released
2015-03-23 00:00:00 UTC
First Release
2010-10-06 13:00:00 UTC
Depends on following gems
Depending Gems
4

Github radar/paranoia

Watchers
904
Forks
213
Development activity
Less active
Last commit
2015-03-23 21:59:24 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
236015
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

Check the home page for more in-depth information.

Rubygem acts_as_paranoid

Total Downloads
278047
Releases
13
Current Version
0.4.3
Released
2014-08-11 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
116236
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
372
Forks
79
Development activity
Inactive
Last commit
2013-01-07 20:10:48 UTC
Top contributors
Contributors
7
Issues

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
93037
Releases
20
Current Version
3.3.0
Released
2015-03-10 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
176
Forks
42
Development activity
Less active
Last commit
2015-03-11 15:22:42 UTC

destroyed_at

Safe destroy for ActiveRecord.

Rubygem destroyed_at

Total Downloads
11187
Releases
11
Current Version
1.0.0
Released
2014-11-07 00:00:00 UTC
First Release
2013-06-28 00:00:00 UTC
Depending Gems
0

Github dockyard/destroyed_at

Watchers
332
Forks
12
Development activity
Less active
Last commit
2014-12-05 16:25:11 UTC
First commit

Acts as soft deletable

Rails plugin that provides the ability to soft delete models

Github ajh/acts_as_soft_deletable

Watchers
70
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
28139
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
63
Forks
17
Development activity
Inactive
Last commit
2015-03-03 19:26:05 UTC
First commit

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
35
Forks
10
Development activity
Less active
Last commit
2014-07-24 19:24:48 UTC
Contributors
8
Issues

soft_deletion

Explicit soft deletion for ActiveRecord via deleted_at and default scope.

Rubygem soft_deletion

Total Downloads
51663
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
27
Forks
10
Development activity
Inactive
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
9958
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
11398
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
22
Forks
6
Development activity
Inactive
Last commit
2015-03-24 11:24:30 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.