]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/old_way_node.rb
Made rubocop happy by formatting and minor syntax tweaks.
[rails.git] / app / models / old_way_node.rb
index 5260ee698f5b8df2e356c12284c002ea9f1bc85b..23ff503edf665ff922e6fe4b874f5484734f488f 100644 (file)
@@ -1,6 +1,9 @@
 class OldWayNode < ActiveRecord::Base
-  belongs_to :user
-
-  set_table_name 'way_nodes'
+  self.table_name = "way_nodes"
+  self.primary_keys = "way_id", "version", "sequence_id"
 
+  belongs_to :old_way, :foreign_key => [:way_id, :version]
+  # A bit messy, referring to current nodes and ways, should do for the data browser for now
+  belongs_to :node
+  belongs_to :way
 end