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: 171,847 of 190,497
Downloads: 2,507

Daily

Ranking: 103,620 of 190,468
Downloads: 0

Depended by

RankDownloadsName

Depends on

RankDownloadsName
13,253,093,056bundler
81,259,660,350rake
29959,099,869rspec
36763,807,525activerecord
56662,145,099rubocop
72584,767,680pry
99450,939,760simplecov
107427,251,459pg
199247,770,681rspec_junit_formatter
210227,721,411mysql2
231205,192,846database_cleaner
279175,733,326sqlite3
10,286290,760rubocop-junit_formatter

Owners

#GravatarHandle
1iconanirbanmu