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.

Gemfile:
=

安装:
=

版本列表:

  1. 0.1.0 December 21, 2018 (17.5 KB)

Runtime 依赖 (1):

Development 依赖 (12):

bundler ~> 1.17
mysql2 ~> 0.5
pg ~> 1.1
pry ~> 0.12
rake ~> 10.0
rspec ~> 3.8
rubocop ~> 0.61
simplecov ~> 0.12
sqlite3 ~> 1.3

所有者:

作者:

  • Anirban Mukhopadhyay

SHA 256 校验和:

=

下载总量 2,312

这个版本 2,312

版本发布:

许可:

需要的 Ruby 版本: >= 0

链接: