X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/5a8c4faf3ebf4e80bd41b2f281bc3c23309739d5..e6d19586dffa03e6fac4961c0a1b64b6a237d88d:/app/models/relation_member.rb diff --git a/app/models/relation_member.rb b/app/models/relation_member.rb index aba38511c..e5c783f5c 100644 --- a/app/models/relation_member.rb +++ b/app/models/relation_member.rb @@ -2,6 +2,6 @@ class RelationMember < ActiveRecord::Base self.table_name = "current_relation_members" self.primary_keys = "relation_id", "sequence_id" - belongs_to :relation + belongs_to :relation, :foreign_key => :relation_id belongs_to :member, :polymorphic => true end