]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/old_way_tag.rb
Update notifiers to use new ActionMailer API
[rails.git] / app / models / old_way_tag.rb
index 547fd177cabc263ab99994ec526ef5c84090544a..801532dbaa7632d2074e33fbb48ac4a5251285a3 100644 (file)
@@ -1,8 +1,8 @@
 class OldWayTag < ActiveRecord::Base
-  belongs_to :user
-
   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]