diff options
| author | Alban Peignier | 2018-01-05 09:11:26 +0100 |
|---|---|---|
| committer | Alban Peignier | 2018-01-05 10:23:29 +0100 |
| commit | e1b3f15bfd3559676b05487dca400a3da43fa126 (patch) | |
| tree | 6af6d35c22061f83b31e27a20a6fe898856e2eda | |
| parent | a091b61f020651142ac55c2c9074d28070e067a7 (diff) | |
| download | chouette-core-e1b3f15bfd3559676b05487dca400a3da43fa126.tar.bz2 | |
Add Line#time_tables. Refs #5299
| -rw-r--r-- | app/models/chouette/line.rb | 1 |
1 files changed, 1 insertions, 0 deletions
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' |
