]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/old_relation_member.rb
Data browser changes, make links more user friendly, displaying name tag where possible.
[rails.git] / app / models / old_relation_member.rb
index d8b68585428da54515eb579d9a31ca4f04f04576..7bd7442dd973f46d6af1fb95aa15b2eaacb0c8a2 100644 (file)
@@ -1,3 +1,8 @@
 class OldRelationMember < ActiveRecord::Base
   set_table_name 'relation_members'
+
+  set_primary_keys :id, :version, :sequence_id
+  belongs_to :relation, :foreign_key=> :id
+  # A bit messy, referring to the current tables, should do for the data browser for now
+  belongs_to :member, :polymorphic => true
 end