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: 170,532 of 187,286
Downloads: 2,417
Daily
Ranking: 111,948 of 187,264
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 | 2,976,933,643 | bundler |
10 | 1,153,275,696 | rake |
27 | 919,994,150 | rspec |
36 | 712,412,776 | activerecord |
57 | 605,291,972 | rubocop |
73 | 552,025,027 | pry |
99 | 421,619,623 | simplecov |
107 | 398,863,901 | pg |
197 | 232,509,796 | rspec_junit_formatter |
206 | 216,889,326 | mysql2 |
223 | 197,296,620 | database_cleaner |
274 | 163,911,949 | sqlite3 |
9,947 | 288,934 | rubocop-junit_formatter |
Owners
# | Gravatar | Handle |
---|---|---|
1 | anirbanmu |