From e1b3f15bfd3559676b05487dca400a3da43fa126 Mon Sep 17 00:00:00 2001 From: Alban Peignier Date: Fri, 5 Jan 2018 09:11:26 +0100 Subject: Add Line#time_tables. Refs #5299 --- app/models/chouette/line.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/models/chouette/line.rb b/app/models/chouette/line.rb index 2d776e94b..389240ec7 100644 --- a/app/models/chouette/line.rb +++ b/app/models/chouette/line.rb @@ -21,6 +21,7 @@ module Chouette has_many :journey_patterns, :through => :routes has_many :vehicle_journeys, :through => :journey_patterns has_many :routing_constraint_zones, through: :routes + has_many :time_tables, -> { distinct }, :through => :vehicle_journeys has_and_belongs_to_many :group_of_lines, :class_name => 'Chouette::GroupOfLine', :order => 'group_of_lines.name' -- cgit v1.2.3