method
database_exists?
v6.1.3.1 -
Show latest stable
- Class:
ActiveRecord::ConnectionAdapters::PostgreSQLAdapter
database_exists?(config)public
No documentation available.
# File activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb, line 266
def self.database_exists?(config)
!!ActiveRecord::Base.postgresql_connection(config)
rescue ActiveRecord::NoDatabaseError
false
end