]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/old_relation_member.rb
Eager load nodes and node tags for the way when doing a getway call.
[rails.git] / app / models / old_relation_member.rb
index d8b68585428da54515eb579d9a31ca4f04f04576..f0294d33952bd015f43c48d860ff30721b7a8b4e 100644 (file)
@@ -1,3 +1,6 @@
 class OldRelationMember < ActiveRecord::Base
   set_table_name 'relation_members'
+
+  set_primary_keys :id, :version, :sequence_id
+  belongs_to :relation, :foreign_key=> :id
 end