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,741 of 197,085
Downloads: 2,622

Daily

Ranking: 87,723 of 197,066
Downloads: 0

Depended by

RankDownloadsName

Depends on

RankDownloadsName
13,796,160,121bundler
81,428,256,062rake
291,025,379,194rspec
37845,746,438activerecord
55754,099,562rubocop
72637,492,173pry
98505,778,426simplecov
110475,509,226pg
202274,745,188rspec_junit_formatter
226243,595,999mysql2
247219,444,568database_cleaner
285196,939,989sqlite3
10,907292,520rubocop-junit_formatter

Owners

#GravatarHandle
1iconanirbanmu