X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/a21824f754ddea0e45beb87cdaa371e74359e2e2..544353a8d93aa1ed1f82faea51ce50b090f91f14:/app/models/old_relation_member.rb diff --git a/app/models/old_relation_member.rb b/app/models/old_relation_member.rb index d8b685854..7bd7442dd 100644 --- a/app/models/old_relation_member.rb +++ b/app/models/old_relation_member.rb @@ -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