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: 169,969 of 186,995
Downloads: 2,355
Daily
Ranking: 146,349 of 186,959
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,908,242,014 | bundler |
10 | 1,129,028,222 | rake |
27 | 909,782,048 | rspec |
36 | 698,603,704 | activerecord |
57 | 590,210,635 | rubocop |
71 | 543,136,562 | pry |
99 | 413,875,826 | simplecov |
107 | 391,353,620 | pg |
194 | 228,740,213 | rspec_junit_formatter |
205 | 214,136,008 | mysql2 |
219 | 195,269,993 | database_cleaner |
276 | 161,097,927 | sqlite3 |
9,863 | 288,054 | rubocop-junit_formatter |
Owners
# | Gravatar | Handle |
---|---|---|
1 | anirbanmu |