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,809 of 187,638
Downloads: 2,438

Daily

Ranking: 121,503 of 187,621
Downloads: 0

Depended by

RankDownloadsName

Depends on

RankDownloadsName
13,015,182,468bundler
101,167,198,806rake
28925,682,568rspec
36720,395,242activerecord
57614,378,057rubocop
73556,747,332pry
99425,671,500simplecov
107403,136,705pg
197234,699,860rspec_junit_formatter
206218,409,513mysql2
223198,362,655database_cleaner
275165,896,662sqlite3
9,996289,260rubocop-junit_formatter

Owners

#GravatarHandle
1iconanirbanmu