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