X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/e1f79d84adc413afa2a1a8d8d06fda9fa5151d49..34e3e51456774127d43408b7ab65c24f41373f62:/app/models/way_tag.rb diff --git a/app/models/way_tag.rb b/app/models/way_tag.rb index 98ff62f5f..6204af9a5 100644 --- a/app/models/way_tag.rb +++ b/app/models/way_tag.rb @@ -3,7 +3,7 @@ class WayTag < ActiveRecord::Base self.primary_keys = "way_id", "k" belongs_to :way - + validates_presence_of :way validates_length_of :k, :maximum => 255, :allow_blank => true validates_uniqueness_of :k, :scope => :way_id