No commit activity in last 3 years
No release in over 3 years
Introduces soft deletions for ActiveRecord.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.3
>= 0

Runtime

>= 5.0.1, ~> 5.0
 Project Readme

PersistentRecord

Introduces soft deletions for ActiveRecord. Heavily inspired by radar/paranoia.

Installation

gem 'persistent_record', github: 'lessthanthree/persistent_record'

Usage

Migrate your models by adding a "deleted_at" timestamp, rails generate migration AddDeletedAtColumnToModels deleted_at:datetime:index

class YourModel < ActiveRecord::Base

	acts_as_persistent

end

Deprecation Warning

  • zap! is now an alias for force_destroy!, will be removed in 1.0.