Categories: None [Edit]

prune_ar

https://rubygems.org/gems/prune_ar
https://github.com/contently/prune_ar
Given an initial set of records to delete prune_ar deletes all other records (accessible via ActiveRecord) that are now orphaned due to a belongs_to relation which is now non-existent. This allows you to safely delete records that you want to delete without creating orphaned records in another table (& without violating foreign key constraints if you use them). This can be used to prune a production database (given deletion criteria for top level parent-less independent entities) for use in a development environment without compromising customer data.

Total

Ranking: 168,293 of 183,509
Downloads: 2,255

Daily

Ranking: 138,048 of 183,501
Downloads: 2

Depended by

RankDownloadsName

Depends on

RankDownloadsName
12,459,455,183bundler
10970,378,207rake
25825,653,379rspec
35605,668,847activerecord
62485,621,190rubocop
69473,925,581pry
98354,153,272simplecov
103342,298,474pg
187197,614,551mysql2
191194,801,528rspec_junit_formatter
201181,996,279database_cleaner
259143,296,939sqlite3
9,353283,302rubocop-junit_formatter

Owners

#GravatarHandle
1iconanirbanmu