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