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,961 of 197,744
Downloads: 2,629
Daily
Ranking: 105,941 of 197,724
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,863,547,421 | bundler |
| 8 | 1,444,561,272 | rake |
| 29 | 1,032,112,907 | rspec |
| 37 | 855,219,427 | activerecord |
| 55 | 763,949,454 | rubocop |
| 73 | 642,722,902 | pry |
| 97 | 511,923,440 | simplecov |
| 110 | 481,357,989 | pg |
| 202 | 277,643,459 | rspec_junit_formatter |
| 229 | 245,194,707 | mysql2 |
| 248 | 220,866,716 | database_cleaner |
| 285 | 199,063,254 | sqlite3 |
| 10,955 | 292,661 | rubocop-junit_formatter |
Owners
| # | Gravatar | Handle |
|---|---|---|
| 1 | anirbanmu |