{"id":15288802,"url":"https://github.com/globalapptesting/wipe_out","last_synced_at":"2025-04-13T05:34:42.383Z","repository":{"id":45426617,"uuid":"384006932","full_name":"globalapptesting/wipe_out","owner":"globalapptesting","description":"Library for removing and clearing data in Rails ActiveRecord models.","archived":false,"fork":false,"pushed_at":"2023-06-27T08:56:58.000Z","size":45,"stargazers_count":37,"open_issues_count":2,"forks_count":0,"subscribers_count":9,"default_branch":"main","last_synced_at":"2025-03-26T23:02:29.804Z","etag":null,"topics":["activerecord","gdpr","ruby","ruby-gem","ruby-on-rails"],"latest_commit_sha":null,"homepage":"https://www.rubydoc.info/github/GlobalAppTesting/wipe_out/main/","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/globalapptesting.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-07-08T05:05:51.000Z","updated_at":"2024-10-18T13:25:11.000Z","dependencies_parsed_at":"2024-10-23T01:04:35.786Z","dependency_job_id":null,"html_url":"https://github.com/globalapptesting/wipe_out","commit_stats":{"total_commits":11,"total_committers":5,"mean_commits":2.2,"dds":0.6363636363636364,"last_synced_commit":"efec982d75ba6de63b01f32376c64c54678698d4"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/globalapptesting%2Fwipe_out","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/globalapptesting%2Fwipe_out/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/globalapptesting%2Fwipe_out/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/globalapptesting%2Fwipe_out/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/globalapptesting","download_url":"https://codeload.github.com/globalapptesting/wipe_out/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248670518,"owners_count":21142896,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["activerecord","gdpr","ruby","ruby-gem","ruby-on-rails"],"created_at":"2024-09-30T15:53:15.576Z","updated_at":"2025-04-13T05:34:41.993Z","avatar_url":"https://github.com/globalapptesting.png","language":"Ruby","readme":"# WipeOut\n\n[![Gem Version](https://badge.fury.io/rb/wipe_out.svg)](https://rubygems.org/gems/wipe_out)\n\n![Library for removing and clearing data in Rails ActiveRecord models](https://www.globalapptesting.com/hs-fs/hubfs/blog_post_title_image_1-14.jpeg?width=1985\u0026name=blog_post_title_image_1-14.jpeg)\n\nRelease blog post, [ActiveRecord models: How to remove data in GDPR compliant way](https://www.globalapptesting.com/engineering/activerecord-models-how-to-remove-data-in-gdpr-compliant-way)\n\n## Installation\n\n1. Add WipeOut to your application's Gemfile:\n\n```ruby\ngem \"wipe_out\", \"~\u003e 1.0\"\n```\n\nCheck newest release at [here](https://rubygems.org/gems/wipe_out).\n\n## Usage\n\nQuick example:\n\nGiven the following model:\n\n```ruby\n# == Schema Info\n#\n# Table name: users\n#\n#  id                  :integer(11)    not null, primary key\n#  name                :varchar(11)    not null\n#  orders_count        :integer(11)    not null\nclass User \u003c ActiveRecord::Base\nend\n\n```\n\nWe can define custom wipe out plan:\n\n```ruby\nUserWipeOutPlan = WipeOut.build_plan do\n  wipe_out :name\n  ignore :orders_count\nend\n```\n\nand execute it:\n\n```ruby\nUser.last.then { |user| UserWipeOutPlan.execute(user) }\n```\n\nIt will overwrite data inside `name` but leave, `orders_count` untouched.\n\nThere is also support for relations and making sure that policies are defined\nfor any added columns.\n\nRead more in [getting started](./docs/getting_started.md) doc.\n\n## Contributing \u0026\u0026 Development\n\nSee [development.md](./docs/development.md)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fglobalapptesting%2Fwipe_out","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fglobalapptesting%2Fwipe_out","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fglobalapptesting%2Fwipe_out/lists"}