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: 174,955 of 196,643
Downloads: 2,614
Daily
Ranking: 57,730 of 196,611
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,710,924,149 | bundler |
| 8 | 1,406,261,007 | rake |
| 29 | 1,016,069,266 | rspec |
| 37 | 833,443,753 | activerecord |
| 56 | 741,207,919 | rubocop |
| 72 | 630,569,720 | pry |
| 98 | 497,813,111 | simplecov |
| 110 | 468,430,144 | pg |
| 201 | 271,196,892 | rspec_junit_formatter |
| 220 | 241,541,499 | mysql2 |
| 247 | 217,530,953 | database_cleaner |
| 282 | 194,174,962 | sqlite3 |
| 10,841 | 292,296 | rubocop-junit_formatter |
Owners
| # | Gravatar | Handle |
|---|---|---|
| 1 | anirbanmu |