]> git.openstreetmap.org Git - rails.git/commitdiff
adding node tag models
authorNick Black <nickb@svn.openstreetmap.org>
Sat, 3 May 2008 14:07:07 +0000 (14:07 +0000)
committerNick Black <nickb@svn.openstreetmap.org>
Sat, 3 May 2008 14:07:07 +0000 (14:07 +0000)
app/models/node_tag.rb [new file with mode: 0644]
app/models/old_node_tag.rb [new file with mode: 0644]

diff --git a/app/models/node_tag.rb b/app/models/node_tag.rb
new file mode 100644 (file)
index 0000000..9795ff4
--- /dev/null
@@ -0,0 +1,5 @@
+class NodeTag < ActiveRecord::Base
+  set_table_name 'current_node_tags'
+
+  belongs_to :node, :foreign_key => 'id'
+end
diff --git a/app/models/old_node_tag.rb b/app/models/old_node_tag.rb
new file mode 100644 (file)
index 0000000..26a6c92
--- /dev/null
@@ -0,0 +1,7 @@
+class OldNodeTag < ActiveRecord::Base
+  belongs_to :user
+
+  set_table_name 'node_tags'
+
+
+end