]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/old_way_tag.rb
Allow any valid (per RFC 3986) scheme name in OAuth callback URLs
[rails.git] / app / models / old_way_tag.rb
index 68003cbebad7151084f4cd9f8369d8b43094f7cd..801532dbaa7632d2074e33fbb48ac4a5251285a3 100644 (file)
@@ -1,8 +1,8 @@
 class OldWayTag < ActiveRecord::Base
-  belongs_to :old_way
-
   set_table_name 'way_tags'
 
+  belongs_to :old_way, :foreign_key => [:id, :version]
+
   validates_presence_of :id
   validates_length_of :k, :v, :maximum => 255, :allow_blank => true
   validates_uniqueness_of :id, :scope => [:k, :version]