]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/relation_member.rb
Add banner for FOSSGIS 2016 conference
[rails.git] / app / models / relation_member.rb
index aba38511ce5e01399bb702a9ef3115b295cd95fa..e5c783f5c68b788e7d5f034970a3a4ebc28acd5e 100644 (file)
@@ -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