]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/old_relation_member.rb
Always get the bug commenter name from the user if there is one
[rails.git] / app / models / old_relation_member.rb
index 9e2cce4c2ec8b76367edece77931f282e011936f..7bd7442dd973f46d6af1fb95aa15b2eaacb0c8a2 100644 (file)
@@ -1,6 +1,8 @@
 class OldRelationMember < ActiveRecord::Base
 class OldRelationMember < ActiveRecord::Base
-  belongs_to :user
-
   set_table_name 'relation_members'
 
   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
 end