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,564 of 189,704
Downloads: 2,500

Daily

Ranking: 47,186 of 189,678
Downloads: 1

Depended by

RankDownloadsName

Depends on

RankDownloadsName
13,199,543,819bundler
91,240,323,606rake
29951,911,679rspec
36754,888,648activerecord
56652,137,754rubocop
74578,806,483pry
99445,436,076simplecov
107422,464,726pg
199244,955,571rspec_junit_formatter
210225,986,158mysql2
229203,693,669database_cleaner
277173,544,720sqlite3
10,216290,552rubocop-junit_formatter

Owners

#GravatarHandle
1iconanirbanmu