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