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,670 of 199,406
Downloads: 2,752
Daily
Ranking: 166,138 of 199,354
Downloads: 3
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 | 4,036,948,822 | bundler |
| 7 | 1,484,676,672 | rake |
| 29 | 1,050,507,074 | rspec |
| 37 | 879,664,282 | activerecord |
| 54 | 789,174,487 | rubocop |
| 73 | 656,519,734 | pry |
| 97 | 527,791,151 | simplecov |
| 109 | 496,349,990 | pg |
| 205 | 285,008,560 | rspec_junit_formatter |
| 232 | 249,405,146 | mysql2 |
| 255 | 224,802,406 | database_cleaner |
| 287 | 204,768,008 | sqlite3 |
| 11,072 | 293,783 | rubocop-junit_formatter |
Owners
| # | Gravatar | Handle |
|---|---|---|
| 1 | anirbanmu |