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: 172,653 of 192,968
Downloads: 2,563
Daily
Ranking: 106,324 of 192,934
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,419,715,998 | bundler |
| 8 | 1,321,873,897 | rake |
| 29 | 980,384,371 | rspec |
| 36 | 790,722,643 | activerecord |
| 56 | 692,129,969 | rubocop |
| 72 | 603,050,714 | pry |
| 97 | 468,111,654 | simplecov |
| 108 | 442,807,742 | pg |
| 201 | 257,227,498 | rspec_junit_formatter |
| 214 | 232,991,321 | mysql2 |
| 237 | 210,150,108 | database_cleaner |
| 279 | 183,069,576 | sqlite3 |
| 10,590 | 291,432 | rubocop-junit_formatter |
Owners
| # | Gravatar | Handle |
|---|---|---|
| 1 | anirbanmu |