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: 168,293 of 183,509
Downloads: 2,255
Daily
Ranking: 138,048 of 183,501
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 | 2,459,455,183 | bundler |
10 | 970,378,207 | rake |
25 | 825,653,379 | rspec |
35 | 605,668,847 | activerecord |
62 | 485,621,190 | rubocop |
69 | 473,925,581 | pry |
98 | 354,153,272 | simplecov |
103 | 342,298,474 | pg |
187 | 197,614,551 | mysql2 |
191 | 194,801,528 | rspec_junit_formatter |
201 | 181,996,279 | database_cleaner |
259 | 143,296,939 | sqlite3 |
9,353 | 283,302 | rubocop-junit_formatter |
Owners
# | Gravatar | Handle |
---|---|---|
1 | anirbanmu |