diff options
Diffstat (limited to 'app/models/stop_area_referential.rb')
| -rw-r--r-- | app/models/stop_area_referential.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/models/stop_area_referential.rb b/app/models/stop_area_referential.rb index c05d6e6be..2ef1278d8 100644 --- a/app/models/stop_area_referential.rb +++ b/app/models/stop_area_referential.rb @@ -6,7 +6,8 @@ class StopAreaReferential < ActiveRecord::Base has_many :stop_areas, class_name: 'Chouette::StopArea' has_many :stop_area_referential_syncs, -> {order created_at: :desc} has_many :workbenches - enumerize :objectid_format, in: %w(default_netex stif_netex) + enumerize :objectid_format, in: %w(netex stif_netex) + validates_presence_of :objectid_format def add_member(organisation, options = {}) attributes = options.merge organisation: organisation |
