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,691 of 197,010
Downloads: 2,622
Daily
Ranking: 75,793 of 196,979
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,788,186,650 | bundler |
| 8 | 1,426,181,701 | rake |
| 29 | 1,024,574,696 | rspec |
| 37 | 844,585,823 | activerecord |
| 56 | 752,921,848 | rubocop |
| 72 | 636,901,159 | pry |
| 98 | 505,080,855 | simplecov |
| 110 | 474,838,943 | pg |
| 201 | 274,443,671 | rspec_junit_formatter |
| 226 | 243,437,420 | mysql2 |
| 247 | 219,289,012 | database_cleaner |
| 285 | 196,687,470 | sqlite3 |
| 10,903 | 292,504 | rubocop-junit_formatter |
Owners
| # | Gravatar | Handle |
|---|---|---|
| 1 | anirbanmu |