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: 169,969 of 186,995
Downloads: 2,355

Daily

Ranking: 146,349 of 186,959
Downloads: 1

Depended by

RankDownloadsName

Depends on

RankDownloadsName
12,908,242,014bundler
101,129,028,222rake
27909,782,048rspec
36698,603,704activerecord
57590,210,635rubocop
71543,136,562pry
99413,875,826simplecov
107391,353,620pg
194228,740,213rspec_junit_formatter
205214,136,008mysql2
219195,269,993database_cleaner
276161,097,927sqlite3
9,863288,054rubocop-junit_formatter

Owners

#GravatarHandle
1iconanirbanmu