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,190 of 188,354
Downloads: 2,471
Daily
Ranking: 125,166 of 188,339
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,090,212,201 | bundler |
| 10 | 1,192,295,793 | rake |
| 29 | 936,893,351 | rspec |
| 36 | 734,817,456 | activerecord |
| 57 | 630,413,506 | rubocop |
| 74 | 565,893,447 | pry |
| 99 | 433,704,762 | simplecov |
| 107 | 411,574,932 | pg |
| 197 | 238,857,959 | rspec_junit_formatter |
| 208 | 221,892,362 | mysql2 |
| 227 | 200,557,317 | database_cleaner |
| 274 | 169,529,453 | sqlite3 |
| 10,081 | 289,909 | rubocop-junit_formatter |
Owners
| # | Gravatar | Handle |
|---|---|---|
| 1 | anirbanmu |