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: 175,186 of 198,451
Downloads: 2,715

Daily

Ranking: 79,135 of 198,429
Downloads: 0

Depended by

RankDownloadsName

Depends on

RankDownloadsName
13,944,297,318bundler
81,463,583,217rake
291,040,602,616rspec
37866,816,659activerecord
55775,917,267rubocop
73649,194,455pry
97519,378,827simplecov
110488,368,728pg
205281,091,798rspec_junit_formatter
231247,173,904mysql2
252222,645,472database_cleaner
285201,760,508sqlite3
11,016292,811rubocop-junit_formatter

Owners

#GravatarHandle
1iconanirbanmu