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: 174,955 of 196,643
Downloads: 2,614

Daily

Ranking: 57,730 of 196,611
Downloads: 0

Depended by

RankDownloadsName

Depends on

RankDownloadsName
13,710,924,149bundler
81,406,261,007rake
291,016,069,266rspec
37833,443,753activerecord
56741,207,919rubocop
72630,569,720pry
98497,813,111simplecov
110468,430,144pg
201271,196,892rspec_junit_formatter
220241,541,499mysql2
247217,530,953database_cleaner
282194,174,962sqlite3
10,841292,296rubocop-junit_formatter

Owners

#GravatarHandle
1iconanirbanmu