Project

wipe_out

0.01
No release in over a year
Library for removing and clearing data in Rails ActiveRecord models. Allows to define data removal policy with its own, easy to understand, DSL.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 0.14.1
~> 6.1
~> 3.10
~> 0.21.1
~> 1.4.2
~> 1.24.0
~> 0.6.2
~> 0.9

Runtime

>= 6.0, < 8.0
>= 2.4
 Project Readme

WipeOut

Gem Version

Library for removing and clearing data in Rails ActiveRecord models

Release blog post, ActiveRecord models: How to remove data in GDPR compliant way

Installation

  1. Add WipeOut to your application's Gemfile:
gem "wipe_out", "~> 1.0"

Check newest release at here.

Usage

Quick example:

Given the following model:

# == Schema Info
#
# Table name: users
#
#  id                  :integer(11)    not null, primary key
#  name                :varchar(11)    not null
#  orders_count        :integer(11)    not null
class User < ActiveRecord::Base
end

We can define custom wipe out plan:

UserWipeOutPlan = WipeOut.build_plan do
  wipe_out :name
  ignore :orders_count
end

and execute it:

User.last.then { |user| UserWipeOutPlan.execute(user) }

It will overwrite data inside name but leave, orders_count untouched.

There is also support for relations and making sure that policies are defined for any added columns.

Read more in getting started doc.

Contributing && Development

See development.md