]> git.openstreetmap.org Git - rails.git/blobdiff - db/migrate/006_tile_nodes.rb
Merge remote-tracking branch 'upstream/pull/2494'
[rails.git] / db / migrate / 006_tile_nodes.rb
index 138168a7b597985dce07d7f7585efbd48259f2b8..ca898cb37b197f6f9c77ae386dc277a56d744973 100644 (file)
@@ -1,6 +1,14 @@
 require "migrate"
 
 require "migrate"
 
-class TileNodes < ActiveRecord::Migration[5.0]
+class TileNodes < ActiveRecord::Migration[4.2]
+  class Node < ApplicationRecord
+    self.table_name = "current_nodes"
+  end
+
+  class OldNode < ApplicationRecord
+    self.table_name = "nodes"
+  end
+
   def self.upgrade_table(from_table, to_table, model)
     if ENV["USE_DB_FUNCTIONS"]
       execute <<-SQL
   def self.upgrade_table(from_table, to_table, model)
     if ENV["USE_DB_FUNCTIONS"]
       execute <<-SQL