]> git.openstreetmap.org Git - rails.git/blob - app/models/old_way_tag.rb
Relation Tag testing. Also sort the belong_to/has_many for user/changeset/old_way.
[rails.git] / app / models / old_way_tag.rb
1 class OldWayTag < ActiveRecord::Base
2   belongs_to :old_way
3
4   set_table_name 'way_tags'
5
6   validates_presence_of :id
7   validates_length_of :k, :v, :maximum => 255, :allow_blank => true
8   validates_uniqueness_of :id, :scope => [:k, :version]
9   validates_numericality_of :id, :version, :only_integer => true
10 end