method

database_exists?

rails latest stable - Class: ActiveRecord::ConnectionAdapters::PostgreSQLAdapter

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v7.0.0) is shown here.

database_exists?(config)
public

No documentation available.

# File activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb, line 300
      def self.database_exists?(config)
        !!ActiveRecord::Base.postgresql_connection(config)
      rescue ActiveRecord::NoDatabaseError
        false
      end