]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/old_relation_tag.rb
Replace deprecated methods with modern equivalents
[rails.git] / app / models / old_relation_tag.rb
index 032a87c77edfd1547d474cd5d4d7c9b4685b6fcf..49324966f506c2624f0055d9f02fc5f82f2e6911 100644 (file)
@@ -1,6 +1,6 @@
 class OldRelationTag < ActiveRecord::Base
-  set_table_name 'relation_tags'
-    set_primary_keys :relation_id, :version, :k
+  self.table_name = "relation_tags"
+  self.primary_keys = "relation_id", "version", "k"
 
   belongs_to :old_relation, :foreign_key => [:relation_id, :version]