]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/relation_member.rb
Fix exception when message limit is hit
[rails.git] / app / models / relation_member.rb
index c1919b67a6649a9caedf88ebfcc6d0ae7a52e102..e5c783f5c68b788e7d5f034970a3a4ebc28acd5e 100644 (file)
@@ -1,7 +1,7 @@
 class RelationMember < ActiveRecord::Base
-  set_table_name 'current_relation_members'  
-  set_primary_keys :relation_id, :sequence_id
+  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