X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/e03ea17a227b09df70899b035680b51b3da2c61b..b73e8f989b3c01bcbf7b6ec20698809b0e89e8f2:/app/models/old_relation_member.rb?ds=inline diff --git a/app/models/old_relation_member.rb b/app/models/old_relation_member.rb index 9e2cce4c2..7bd7442dd 100644 --- a/app/models/old_relation_member.rb +++ b/app/models/old_relation_member.rb @@ -1,6 +1,8 @@ class OldRelationMember < ActiveRecord::Base - belongs_to :user - 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