X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/5a8c4faf3ebf4e80bd41b2f281bc3c23309739d5..a402e811dac1f999dcf623ce6099e554d76c6de4:/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