Last active
November 27, 2017 10:40
-
-
Save mokus80/97ac6a442f1e70f4ce432389ce0761c6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| list = [] | |
| DivisionsPresumedTag.all.each do |d| | |
| begin | |
| Division.find d.division_id | |
| rescue | |
| list << "no division with ID #{d.division_id}" | |
| d.destroy | |
| end | |
| begin | |
| Tag.find d.tag_id | |
| rescue | |
| list << "no tag with ID #{d.tag_id}" | |
| d.destroy | |
| end | |
| end | |
| list = [] | |
| DivisionsPresumedSolutionCategory.all.each do |d| | |
| begin | |
| Division.find d.division_id | |
| rescue | |
| list << "no division with ID #{d.division_id}" | |
| d.destroy | |
| end | |
| begin | |
| SolutionCategory.find d.solution_category_id | |
| rescue | |
| list << "no solution category with ID #{d.solution_category_id}" | |
| d.destroy | |
| end | |
| end | |
| list = [] | |
| TagsOffer.all.each do |d| | |
| begin | |
| Tag.find d.tag_id | |
| rescue | |
| list << "no tag with ID #{d.tag_id}" | |
| d.destroy | |
| end | |
| begin | |
| Offer.find d.offer_id | |
| rescue | |
| list << "no offer with ID #{d.offer_id}" | |
| d.destroy | |
| end | |
| end | |
| list = [] | |
| FiltersOffer.all.each do |d| | |
| begin | |
| Filter.find d.filter_id | |
| rescue | |
| list << "no filter with ID #{d.filter_id}" | |
| d.destroy | |
| end | |
| begin | |
| Offer.find d.offer_id | |
| rescue | |
| list << "no offer with ID #{d.offer_id}" | |
| d.destroy | |
| end | |
| end | |
| list = [] | |
| StatisticChartGoal.all.each do |d| | |
| begin | |
| StatisticChart.find d.statistic_chart_id | |
| rescue | |
| list << "no statistic chart with ID #{d.statistic_chart_id}" | |
| d.destroy | |
| end | |
| begin | |
| StatisticGoal.find d.statistic_goal_id | |
| rescue | |
| list << "no statistic goal with ID #{d.statistic_goal_id}" | |
| d.destroy | |
| end | |
| end | |
| list = [] | |
| StatisticChartTransition.all.each do |d| | |
| begin | |
| StatisticChart.find d.statistic_chart_id | |
| rescue | |
| list << "no statistic chart with ID #{d.statistic_chart_id}" | |
| d.destroy | |
| end | |
| begin | |
| StatisticTransition.find d.statistic_transition_id | |
| rescue | |
| list << "no statistic transition with ID #{d.statistic_transition_id}" | |
| d.destroy | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment