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,351 of 192,352
Downloads: 2,550

Daily

Ranking: 94,123 of 192,323
Downloads: 2

Depended by

RankDownloadsName

Depends on

RankDownloadsName
13,362,122,268bundler
81,299,937,016rake
29973,275,866rspec
36782,075,830activerecord
56682,154,588rubocop
73597,044,453pry
99462,145,349simplecov
108437,443,332pg
197254,217,520rspec_junit_formatter
214231,243,571mysql2
234208,509,173database_cleaner
279180,451,700sqlite3
10,413291,283rubocop-junit_formatter

Owners

#GravatarHandle
1iconanirbanmu