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,061 of 183,139
Downloads: 2,239
Daily
Ranking: 66,923 of 183,127
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 | 2,410,461,295 | bundler |
10 | 954,857,689 | rake |
25 | 818,346,165 | rspec |
35 | 596,542,036 | activerecord |
63 | 476,158,129 | rubocop |
68 | 467,366,812 | pry |
99 | 348,601,726 | simplecov |
103 | 336,796,342 | pg |
186 | 195,638,068 | mysql2 |
190 | 191,491,243 | rspec_junit_formatter |
200 | 180,422,662 | database_cleaner |
253 | 141,612,402 | sqlite3 |
9,293 | 282,862 | rubocop-junit_formatter |
Owners
# | Gravatar | Handle |
---|---|---|
1 | anirbanmu |