1 class OldRelationTag < ActiveRecord::Base
 
   2   set_table_name 'relation_tags'
 
   4   belongs_to :old_relation, :foreign_key => [:id, :version]
 
   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