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,691 of 197,010
Downloads: 2,622

Daily

Ranking: 75,793 of 196,979
Downloads: 0

Depended by

RankDownloadsName

Depends on

RankDownloadsName
13,788,186,650bundler
81,426,181,701rake
291,024,574,696rspec
37844,585,823activerecord
56752,921,848rubocop
72636,901,159pry
98505,080,855simplecov
110474,838,943pg
201274,443,671rspec_junit_formatter
226243,437,420mysql2
247219,289,012database_cleaner
285196,687,470sqlite3
10,903292,504rubocop-junit_formatter

Owners

#GravatarHandle
1iconanirbanmu