]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/old_relation_member.rb
Put back missing divider. Closes #1939.
[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