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: 171,564 of 189,704
Downloads: 2,500
Daily
Ranking: 47,186 of 189,678
Downloads: 1
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,199,543,819 | bundler |
| 9 | 1,240,323,606 | rake |
| 29 | 951,911,679 | rspec |
| 36 | 754,888,648 | activerecord |
| 56 | 652,137,754 | rubocop |
| 74 | 578,806,483 | pry |
| 99 | 445,436,076 | simplecov |
| 107 | 422,464,726 | pg |
| 199 | 244,955,571 | rspec_junit_formatter |
| 210 | 225,986,158 | mysql2 |
| 229 | 203,693,669 | database_cleaner |
| 277 | 173,544,720 | sqlite3 |
| 10,216 | 290,552 | rubocop-junit_formatter |
Owners
| # | Gravatar | Handle |
|---|---|---|
| 1 | anirbanmu |