RubyGems Navigation menu

prune_ar 0.1.0

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.

Versions:

  1. 0.1.0 - December 21, 2018 (17.5 KB)

Runtime Dependencies (1):

Development Dependencies (12):

Owners:

Authors:

  • Anirban Mukhopadhyay

SHA 256 checksum:

0e75675e7791750b907b221d99870ebf01efac9010d70632a18cf042eaf5bf60

Total downloads 1,504

For this version 1,504

Gemfile:
= Copy to clipboard Copied!

install:
=

Licenses:

N/A

Required Ruby Version: >= 0

Links: