aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXinhui2017-08-10 10:42:09 +0200
committerXinhui2017-08-10 10:42:09 +0200
commit73e72981b2db451a82614acd91136b8bc53926de (patch)
tree95f39b65755f09c5d40505331edadba287937b7f
parent280d22d597e80479ee04be205c0de67221fdaf82 (diff)
downloadchouette-core-73e72981b2db451a82614acd91136b8bc53926de.tar.bz2
add has_many workbench_object_identifiers for workbench
-rw-r--r--app/models/workbench.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/models/workbench.rb b/app/models/workbench.rb
index 4023c221b..775affcc7 100644
--- a/app/models/workbench.rb
+++ b/app/models/workbench.rb
@@ -9,6 +9,8 @@ class Workbench < ActiveRecord::Base
has_many :group_of_lines, through: :line_referential
has_many :stop_areas, through: :stop_area_referential
has_many :imports
+ has_many :workbench_object_identifiers
+
validates :name, presence: true
validates :organisation, presence: true