]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/old_node.rb
Replace deprecated methods with modern equivalents
[rails.git] / app / models / old_node.rb
index f8af91abb3be2c3c4f6a17a161e41eda5ba831c1..64ae1a70c9d8fe2050f2ccb3283bc04414dae030 100644 (file)
@@ -2,8 +2,8 @@ class OldNode < ActiveRecord::Base
   include GeoRecord
   include ConsistencyValidations
 
-  set_table_name 'nodes'
-  set_primary_keys :node_id, :version
+  self.table_name = "nodes"
+  self.primary_keys = "node_id", "version"
 
   validates_presence_of :changeset_id, :timestamp
   validates_inclusion_of :visible, :in => [ true, false ]