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,847 of 190,497
Downloads: 2,507
Daily
Ranking: 103,620 of 190,468
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,253,093,056 | bundler |
| 8 | 1,259,660,350 | rake |
| 29 | 959,099,869 | rspec |
| 36 | 763,807,525 | activerecord |
| 56 | 662,145,099 | rubocop |
| 72 | 584,767,680 | pry |
| 99 | 450,939,760 | simplecov |
| 107 | 427,251,459 | pg |
| 199 | 247,770,681 | rspec_junit_formatter |
| 210 | 227,721,411 | mysql2 |
| 231 | 205,192,846 | database_cleaner |
| 279 | 175,733,326 | sqlite3 |
| 10,286 | 290,760 | rubocop-junit_formatter |
Owners
| # | Gravatar | Handle |
|---|---|---|
| 1 | anirbanmu |