ActiveRecord::Base.connections is not set when we have an ENV['DATABASE_URL'], so use Rails.configuration.database_configuration instead