diff options
Diffstat (limited to 'app/models/workbench.rb')
| -rw-r--r-- | app/models/workbench.rb | 6 | 
1 files changed, 6 insertions, 0 deletions
| diff --git a/app/models/workbench.rb b/app/models/workbench.rb index 3525fe55e..adc0041dd 100644 --- a/app/models/workbench.rb +++ b/app/models/workbench.rb @@ -3,6 +3,12 @@ class Workbench < ActiveRecord::Base    belongs_to :line_referential    belongs_to :stop_area_referential +  has_many :lines, through: :line_referential +  has_many :networks, through: :line_referential +  has_many :companies, through: :line_referential +  has_many :group_of_lines, through: :line_referential +  has_many :stop_areas, through: :stop_area_referential +    validates :name, presence: true    validates :organisation, presence: true | 
