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,670 of 199,406
Downloads: 2,752

Daily

Ranking: 166,138 of 199,354
Downloads: 3

Depended by

RankDownloadsName

Depends on

RankDownloadsName
14,036,948,822bundler
71,484,676,672rake
291,050,507,074rspec
37879,664,282activerecord
54789,174,487rubocop
73656,519,734pry
97527,791,151simplecov
109496,349,990pg
205285,008,560rspec_junit_formatter
232249,405,146mysql2
255224,802,406database_cleaner
287204,768,008sqlite3
11,072293,783rubocop-junit_formatter

Owners

#GravatarHandle
1iconanirbanmu