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: 172,351 of 192,352
Downloads: 2,550
Daily
Ranking: 94,123 of 192,323
Downloads: 2
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,362,122,268 | bundler |
| 8 | 1,299,937,016 | rake |
| 29 | 973,275,866 | rspec |
| 36 | 782,075,830 | activerecord |
| 56 | 682,154,588 | rubocop |
| 73 | 597,044,453 | pry |
| 99 | 462,145,349 | simplecov |
| 108 | 437,443,332 | pg |
| 197 | 254,217,520 | rspec_junit_formatter |
| 214 | 231,243,571 | mysql2 |
| 234 | 208,509,173 | database_cleaner |
| 279 | 180,451,700 | sqlite3 |
| 10,413 | 291,283 | rubocop-junit_formatter |
Owners
| # | Gravatar | Handle |
|---|---|---|
| 1 | anirbanmu |