diff options
| -rw-r--r-- | app/models/clean_up.rb | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/app/models/clean_up.rb b/app/models/clean_up.rb index cf8908263..f668b9fda 100644 --- a/app/models/clean_up.rb +++ b/app/models/clean_up.rb @@ -43,7 +43,7 @@ class CleanUp < ApplicationModel end end - destroy_vehicle_journeys_outside_referential + destroy_routes_outside_referential # Disabled for the moment. See #5372 # destroy_time_tables_outside_referential @@ -100,11 +100,6 @@ class CleanUp < ApplicationModel destroy_time_tables(time_tables) end - def destroy_vehicle_journeys_outside_referential - line_ids = referential.metadatas.pluck(:line_ids).flatten.uniq - Chouette::VehicleJourney.joins(:route).where(["routes.line_id not in (?)", line_ids]).destroy_all - end - def destroy_routes_outside_referential line_ids = referential.metadatas.pluck(:line_ids).flatten.uniq Chouette::Route.where(['line_id not in (?)', line_ids]).destroy_all |
