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,961 of 197,744
Downloads: 2,629

Daily

Ranking: 105,941 of 197,724
Downloads: 1

Depended by

RankDownloadsName

Depends on

RankDownloadsName
13,863,547,421bundler
81,444,561,272rake
291,032,112,907rspec
37855,219,427activerecord
55763,949,454rubocop
73642,722,902pry
97511,923,440simplecov
110481,357,989pg
202277,643,459rspec_junit_formatter
229245,194,707mysql2
248220,866,716database_cleaner
285199,063,254sqlite3
10,955292,661rubocop-junit_formatter

Owners

#GravatarHandle
1iconanirbanmu