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,056 of 188,047
Downloads: 2,456

Daily

Ranking: 91,292 of 188,026
Downloads: 2

Depended by

RankDownloadsName

Depends on

RankDownloadsName
13,056,135,410bundler
101,181,048,001rake
29931,832,066rspec
36727,934,139activerecord
57623,053,830rubocop
74561,808,607pry
99430,036,265simplecov
107408,109,182pg
197237,006,651rspec_junit_formatter
207220,570,093mysql2
224199,570,105database_cleaner
275167,967,029sqlite3
10,054289,574rubocop-junit_formatter

Owners

#GravatarHandle
1iconanirbanmu