X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/a21824f754ddea0e45beb87cdaa371e74359e2e2..e53b34b80ad5073d78015e4807a8494937ad94fc:/app/models/old_relation_member.rb?ds=sidebyside 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