]> git.openstreetmap.org Git - rails.git/blob - app/models/old_node_tag.rb
turning the session off for the changeset controller, to come in line with the other...
[rails.git] / app / models / old_node_tag.rb
1 class OldNodeTag < ActiveRecord::Base
2   set_table_name 'node_tags'
3   
4   belongs_to :user
5
6   validates_presence_of :id, :version
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