Categories: None [Edit]
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: 171,387 of 188,779
Downloads: 2,481
Daily
Ranking: 88,817 of 188,757
Downloads: 0
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
| Rank | Downloads | Name |
|---|
Depends on
| Rank | Downloads | Name |
|---|---|---|
| 1 | 3,120,857,398 | bundler |
| 10 | 1,202,684,222 | rake |
| 29 | 941,363,553 | rspec |
| 36 | 741,136,506 | activerecord |
| 57 | 637,027,350 | rubocop |
| 74 | 569,632,751 | pry |
| 99 | 437,166,465 | simplecov |
| 107 | 415,017,481 | pg |
| 199 | 240,489,077 | rspec_junit_formatter |
| 208 | 223,157,338 | mysql2 |
| 228 | 201,498,764 | database_cleaner |
| 276 | 170,957,260 | sqlite3 |
| 10,118 | 290,192 | rubocop-junit_formatter |
Owners
| # | Gravatar | Handle |
|---|---|---|
| 1 | anirbanmu |