X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/e6667b7ff5117c101a891c899f1c624f707fa22e..d7880031a1ab869ba5b4c2926eb43dd78701d48a:/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