X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/f1c6a87aa137c11d0aff5a4b0e563ac2c2a8f82d..22dc13d6edb17cbdd4b73aabad340dcc8ef41999:/db/migrate/008_remove_segments.rb diff --git a/db/migrate/008_remove_segments.rb b/db/migrate/008_remove_segments.rb index f8a3085c6..504528e4c 100644 --- a/db/migrate/008_remove_segments.rb +++ b/db/migrate/008_remove_segments.rb @@ -1,5 +1,3 @@ -require "migrate" - class RemoveSegments < ActiveRecord::Migration[4.2] def self.up have_segs = select_value("SELECT count(*) FROM current_segments").to_i.nonzero? @@ -11,7 +9,7 @@ class RemoveSegments < ActiveRecord::Migration[4.2] src = "#{cmd}.cc" if !File.exist?(cmd) || File.mtime(cmd) < File.mtime(src) system("c++ -O3 -Wall `mysql_config --cflags --libs` " \ - "#{src} -o #{cmd}") || raise + "#{src} -o #{cmd}") || raise end conn_opts = ApplicationRecord.connection