app/models/concerns/clean_up_methods.rb
def clean_unassociated_routes
    Chouette::Benchmark.measure 'clean_unassociated_routes' do
      Chouette::Route.where("id not in (select distinct route_id from journey_patterns)").clean!
    end
  end
# EXTRA CLEANINGS, SELECTED FROM THE UI
EXTRA CLEANINGS, SELECTED FROM THE UI
EXTRA CLEANINGS SELECTED FROM THE UI
def clean_unassociated_routes
    Chouette::Benchmark.measure 'clean_unassociated_routes' do
      Chouette::Route.where("id not in (select distinct route_id from journey_patterns)").clean!
    end
  end
def clean_unassociated_routes Chouette :: Benchmark . measure 'clean_unassociated_routes' do Chouette :: Route . where ( "id not in (select distinct route_id from journey_patterns)" ) . clean! end end
EXTRA CLEANINGS, SELECTED FROM THE UI
EXTRA CLEANINGS SELECTED FROM THE UI