]> git.openstreetmap.org Git - rails.git/blobdiff - db/migrate/006_tile_nodes.rb
Update to sprockets 4.x
[rails.git] / db / migrate / 006_tile_nodes.rb
index 1f27ec79e6c48a981725843763ba9c0c203a7da5..848dc972418c5c762c6e97707abed2bcba4b44b4 100644 (file)
@@ -1,6 +1,14 @@
 require "migrate"
 
-class TileNodes < ActiveRecord::Migration
+class TileNodes < ActiveRecord::Migration[4.2]
+  class Node < ActiveRecord::Base
+    self.table_name = "current_nodes"
+  end
+
+  class OldNode < ActiveRecord::Base
+    self.table_name = "nodes"
+  end
+
   def self.upgrade_table(from_table, to_table, model)
     if ENV["USE_DB_FUNCTIONS"]
       execute <<-SQL