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,276 of 191,704
Downloads: 2,522
Daily
Ranking: 145,934 of 191,662
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,310,164,261 | bundler |
| 8 | 1,280,331,712 | rake |
| 29 | 966,794,012 | rspec |
| 36 | 773,640,120 | activerecord |
| 56 | 672,780,877 | rubocop |
| 73 | 591,304,178 | pry |
| 99 | 456,871,573 | simplecov |
| 108 | 432,565,683 | pg |
| 198 | 251,194,290 | rspec_junit_formatter |
| 213 | 229,595,596 | mysql2 |
| 232 | 206,881,241 | database_cleaner |
| 278 | 178,152,935 | sqlite3 |
| 10,354 | 291,019 | rubocop-junit_formatter |
Owners
| # | Gravatar | Handle |
|---|---|---|
| 1 | anirbanmu |