Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 1d1d7f2

Browse files
committedJan 27, 2025·
Postgres, fix database_exists? test, postgresql_connection method was removed
1 parent e0a1ca9 commit 1d1d7f2

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed
 

‎lib/arjdbc/postgresql/adapter.rb

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -915,15 +915,6 @@ def initialize(...)
915915
self.class.type_cast_config_to_boolean(@config[:insert_returning]) : true
916916
end
917917

918-
def self.database_exists?(config)
919-
conn = ActiveRecord::Base.postgresql_connection(config)
920-
conn && conn.really_valid?
921-
rescue ActiveRecord::NoDatabaseError
922-
false
923-
ensure
924-
conn.disconnect! if conn
925-
end
926-
927918
require 'active_record/connection_adapters/postgresql/schema_definitions'
928919

929920
ColumnMethods = ActiveRecord::ConnectionAdapters::PostgreSQL::ColumnMethods

0 commit comments

Comments
 (0)
Please sign in to comment.