]> git.openstreetmap.org Git - rails.git/blob - app/models/node_tag.rb
Migration to add close-time to changesets. This replaces the boolean 'open' attribute...
[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