6854 clean up destroy routes outside referential
Created by: teddywing
Changes CleanUp#clean:
- Instead of destroying vehicle journeys outside the referential, destroy routes outside the referential. This will cascade deletion of vehicle journeys and journey patterns.
- Add a
methodsattribute for configuration which allows optional cleanups to be activated.
Notably, the #destroy_{vehicle_journeys,journey_patterns,routes} methods are no longer called by default because they're unnecessary work for referential duplication.
To re-enable them, the cleaner can be called as follows:
CleanUp.new(methods: [:destroy_empty]).clean