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,056 of 188,047
Downloads: 2,456
Daily
Ranking: 91,292 of 188,026
Downloads: 2
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,056,135,410 | bundler |
| 10 | 1,181,048,001 | rake |
| 29 | 931,832,066 | rspec |
| 36 | 727,934,139 | activerecord |
| 57 | 623,053,830 | rubocop |
| 74 | 561,808,607 | pry |
| 99 | 430,036,265 | simplecov |
| 107 | 408,109,182 | pg |
| 197 | 237,006,651 | rspec_junit_formatter |
| 207 | 220,570,093 | mysql2 |
| 224 | 199,570,105 | database_cleaner |
| 275 | 167,967,029 | sqlite3 |
| 10,054 | 289,574 | rubocop-junit_formatter |
Owners
| # | Gravatar | Handle |
|---|---|---|
| 1 | anirbanmu |