]> git.openstreetmap.org Git - rails.git/blobdiff - db/migrate/008_remove_segments.rb
Merge remote-tracking branch 'upstream/pull/3016'
[rails.git] / db / migrate / 008_remove_segments.rb
index 985a85820a1202a7a74d14165f2482fe915672af..f8a3085c6047b15b5cb06f24bf01115c1d03b7e7 100644 (file)
@@ -14,8 +14,8 @@ class RemoveSegments < ActiveRecord::Migration[4.2]
           "#{src} -o #{cmd}") || raise
       end
 
-      conn_opts = ActiveRecord::Base.connection
-                                    .instance_eval { @connection_options }
+      conn_opts = ApplicationRecord.connection
+                                   .instance_eval { @connection_options }
       args = conn_opts.map(&:to_s) + [prefix]
       raise "#{cmd} failed" unless system cmd, *args