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,061 of 183,139
Downloads: 2,239

Daily

Ranking: 66,923 of 183,127
Downloads: 0

Depended by

RankDownloadsName

Depends on

RankDownloadsName
12,410,461,295bundler
10954,857,689rake
25818,346,165rspec
35596,542,036activerecord
63476,158,129rubocop
68467,366,812pry
99348,601,726simplecov
103336,796,342pg
186195,638,068mysql2
190191,491,243rspec_junit_formatter
200180,422,662database_cleaner
253141,612,402sqlite3
9,293282,862rubocop-junit_formatter

Owners

#GravatarHandle
1iconanirbanmu