]> git.openstreetmap.org Git - rails.git/blob - app/models/node_tag.rb
Adding validations for the length of node tags, and the presence of the id (and versi...
[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, :within => 0..255, :allow_blank => true
8 end