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,971 of 193,649
Downloads: 2,576
Daily
Ranking: 95,690 of 193,618
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,490,992,976 | bundler |
| 8 | 1,345,057,418 | rake |
| 29 | 989,166,690 | rspec |
| 36 | 801,085,161 | activerecord |
| 56 | 704,753,536 | rubocop |
| 71 | 610,196,933 | pry |
| 97 | 475,523,798 | simplecov |
| 108 | 449,200,417 | pg |
| 202 | 260,940,575 | rspec_junit_formatter |
| 215 | 235,276,316 | mysql2 |
| 238 | 211,994,751 | database_cleaner |
| 279 | 185,860,994 | sqlite3 |
| 10,654 | 291,690 | rubocop-junit_formatter |
Owners
| # | Gravatar | Handle |
|---|---|---|
| 1 | anirbanmu |