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: 170,809 of 187,638
Downloads: 2,438
Daily
Ranking: 121,503 of 187,621
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,015,182,468 | bundler |
| 10 | 1,167,198,806 | rake |
| 28 | 925,682,568 | rspec |
| 36 | 720,395,242 | activerecord |
| 57 | 614,378,057 | rubocop |
| 73 | 556,747,332 | pry |
| 99 | 425,671,500 | simplecov |
| 107 | 403,136,705 | pg |
| 197 | 234,699,860 | rspec_junit_formatter |
| 206 | 218,409,513 | mysql2 |
| 223 | 198,362,655 | database_cleaner |
| 275 | 165,896,662 | sqlite3 |
| 9,996 | 289,260 | rubocop-junit_formatter |
Owners
| # | Gravatar | Handle |
|---|---|---|
| 1 | anirbanmu |