]> git.openstreetmap.org Git - rails.git/blob - app/models/node_tag.rb
Merge branch 'openID' of git://github.com/avar/osm-website into openID
[rails.git] / app / models / node_tag.rb
1 class NodeTag < ActiveRecord::Base
2   set_table_name 'current_node_tags'
3
4   belongs_to :node, :foreign_key => 'id'
5   
6   validates_presence_of :id
7   validates_length_of :k, :v, :maximum => 255, :allow_blank => true
8   validates_uniqueness_of :id, :scope => :k
9   validates_numericality_of :id, :only_integer => true
10 end