]> git.openstreetmap.org Git - rails.git/commitdiff
Add missing files from api06 merge.
authorTom Hughes <tom@compton.nu>
Mon, 20 Apr 2009 14:09:35 +0000 (14:09 +0000)
committerTom Hughes <tom@compton.nu>
Mon, 20 Apr 2009 14:09:35 +0000 (14:09 +0000)
1  2 
app/models/old_node_tag.rb

index 0000000000000000000000000000000000000000,3fd4bf86b4fb71504e5c92f58fa6da570f8f0c07..dd339ad307b6400d1fed177cea4020c89883a4b2
mode 000000,100644..100644
--- /dev/null
@@@ -1,0 -1,10 +1,10 @@@
 -  
+ class OldNodeTag < ActiveRecord::Base
+   set_table_name 'node_tags'
++
+   belongs_to :user
+   validates_presence_of :id, :version
+   validates_length_of :k, :v, :maximum => 255, :allow_blank => true
+   validates_uniqueness_of :id, :scope => [:k, :version]
+   validates_numericality_of :id, :version, :only_integer => true
+ end