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: 170,532 of 187,286
Downloads: 2,417

Daily

Ranking: 111,948 of 187,264
Downloads: 1

Depended by

RankDownloadsName

Depends on

RankDownloadsName
12,976,933,643bundler
101,153,275,696rake
27919,994,150rspec
36712,412,776activerecord
57605,291,972rubocop
73552,025,027pry
99421,619,623simplecov
107398,863,901pg
197232,509,796rspec_junit_formatter
206216,889,326mysql2
223197,296,620database_cleaner
274163,911,949sqlite3
9,947288,934rubocop-junit_formatter

Owners

#GravatarHandle
1iconanirbanmu