]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/way_tag.rb
move potlatch presets to only be generated once, and allow pulling in way_tags in...
[rails.git] / app / models / way_tag.rb
index 5ce7c8fbc4758081282bf9a5098c99a784fb6ec7..3f6ac8ce3b5427b5128228e3f49cd218aa6fb84c 100644 (file)
@@ -1,6 +1,8 @@
 class WayTag < ActiveRecord::Base
   set_table_name 'current_way_tags'
 
-  belongs_to :way, :foreign_key => 'id'
+  # false multipart key
+  set_primary_keys :id, :k, :v
 
+  belongs_to :way, :foreign_key => 'id'
 end