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,190 of 188,354
Downloads: 2,471

Daily

Ranking: 125,166 of 188,339
Downloads: 0

Depended by

RankDownloadsName

Depends on

RankDownloadsName
13,090,212,201bundler
101,192,295,793rake
29936,893,351rspec
36734,817,456activerecord
57630,413,506rubocop
74565,893,447pry
99433,704,762simplecov
107411,574,932pg
197238,857,959rspec_junit_formatter
208221,892,362mysql2
227200,557,317database_cleaner
274169,529,453sqlite3
10,081289,909rubocop-junit_formatter

Owners

#GravatarHandle
1iconanirbanmu