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: 175,186 of 198,451
Downloads: 2,715
Daily
Ranking: 79,135 of 198,429
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,944,297,318 | bundler |
| 8 | 1,463,583,217 | rake |
| 29 | 1,040,602,616 | rspec |
| 37 | 866,816,659 | activerecord |
| 55 | 775,917,267 | rubocop |
| 73 | 649,194,455 | pry |
| 97 | 519,378,827 | simplecov |
| 110 | 488,368,728 | pg |
| 205 | 281,091,798 | rspec_junit_formatter |
| 231 | 247,173,904 | mysql2 |
| 252 | 222,645,472 | database_cleaner |
| 285 | 201,760,508 | sqlite3 |
| 11,016 | 292,811 | rubocop-junit_formatter |
Owners
| # | Gravatar | Handle |
|---|---|---|
| 1 | anirbanmu |