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,276 of 191,704
Downloads: 2,522

Daily

Ranking: 145,934 of 191,662
Downloads: 0

Depended by

RankDownloadsName

Depends on

RankDownloadsName
13,310,164,261bundler
81,280,331,712rake
29966,794,012rspec
36773,640,120activerecord
56672,780,877rubocop
73591,304,178pry
99456,871,573simplecov
108432,565,683pg
198251,194,290rspec_junit_formatter
213229,595,596mysql2
232206,881,241database_cleaner
278178,152,935sqlite3
10,354291,019rubocop-junit_formatter

Owners

#GravatarHandle
1iconanirbanmu