X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/e660e609661edadc1ed5ad49d6e83e936b2f91cd..e434cb154c5ccecd7fc0ce672e4de79bd9e7e06f:/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