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,741 of 197,085
Downloads: 2,622
Daily
Ranking: 87,723 of 197,066
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,796,160,121 | bundler |
| 8 | 1,428,256,062 | rake |
| 29 | 1,025,379,194 | rspec |
| 37 | 845,746,438 | activerecord |
| 55 | 754,099,562 | rubocop |
| 72 | 637,492,173 | pry |
| 98 | 505,778,426 | simplecov |
| 110 | 475,509,226 | pg |
| 202 | 274,745,188 | rspec_junit_formatter |
| 226 | 243,595,999 | mysql2 |
| 247 | 219,444,568 | database_cleaner |
| 285 | 196,939,989 | sqlite3 |
| 10,907 | 292,520 | rubocop-junit_formatter |
Owners
| # | Gravatar | Handle |
|---|---|---|
| 1 | anirbanmu |