diff --git a/lib/evm_database.rb b/lib/evm_database.rb index 4450501aff3..873fd8b8dda 100644 --- a/lib/evm_database.rb +++ b/lib/evm_database.rb @@ -103,7 +103,7 @@ def self.local? end # Determines the average time to the database in milliseconds - def self.ping(connection = ApplicationRecord.connection) + def self.ping(connection = ActiveRecord::Base.connection) query = "SELECT 1" Benchmark.realtime { 10.times { connection.select_value(query) } } / 10 * 1000 end