X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/f1c6a87aa137c11d0aff5a4b0e563ac2c2a8f82d..c5c344b12c6b538cce39b372079b051a6071c5b0:/app/models/way_tag.rb diff --git a/app/models/way_tag.rb b/app/models/way_tag.rb index 0d32d8c41..93c4cdece 100644 --- a/app/models/way_tag.rb +++ b/app/models/way_tag.rb @@ -17,7 +17,7 @@ class WayTag < ApplicationRecord belongs_to :way - validates :way, :presence => true, :associated => true + validates :way, :associated => true validates :k, :v, :allow_blank => true, :length => { :maximum => 255 }, :characters => true validates :k, :uniqueness => { :scope => :way_id } end