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,387 of 188,779
Downloads: 2,481

Daily

Ranking: 88,817 of 188,757
Downloads: 0

Depended by

RankDownloadsName

Depends on

RankDownloadsName
13,120,857,398bundler
101,202,684,222rake
29941,363,553rspec
36741,136,506activerecord
57637,027,350rubocop
74569,632,751pry
99437,166,465simplecov
107415,017,481pg
199240,489,077rspec_junit_formatter
208223,157,338mysql2
228201,498,764database_cleaner
276170,957,260sqlite3
10,118290,192rubocop-junit_formatter

Owners

#GravatarHandle
1iconanirbanmu