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: 172,653 of 192,968
Downloads: 2,563

Daily

Ranking: 106,324 of 192,934
Downloads: 0

Depended by

RankDownloadsName

Depends on

RankDownloadsName
13,419,715,998bundler
81,321,873,897rake
29980,384,371rspec
36790,722,643activerecord
56692,129,969rubocop
72603,050,714pry
97468,111,654simplecov
108442,807,742pg
201257,227,498rspec_junit_formatter
214232,991,321mysql2
237210,150,108database_cleaner
279183,069,576sqlite3
10,590291,432rubocop-junit_formatter

Owners

#GravatarHandle
1iconanirbanmu