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: 172,971 of 193,649
Downloads: 2,576

Daily

Ranking: 95,690 of 193,618
Downloads: 0

Depended by

RankDownloadsName

Depends on

RankDownloadsName
13,490,992,976bundler
81,345,057,418rake
29989,166,690rspec
36801,085,161activerecord
56704,753,536rubocop
71610,196,933pry
97475,523,798simplecov
108449,200,417pg
202260,940,575rspec_junit_formatter
215235,276,316mysql2
238211,994,751database_cleaner
279185,860,994sqlite3
10,654291,690rubocop-junit_formatter

Owners

#GravatarHandle
1iconanirbanmu