class method self.database_exists?

Ruby on Rails 6.0.6

Since v6.0.6 Last seen in v7.0.10

Available in: v6.0.6 v6.1.7.10 v7.0.10

Signature

self.database_exists?(config)

No documentation comment.

Parameters

config req
Source
# 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

Defined in activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb line 266 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveRecord::ConnectionAdapters::PostgreSQLAdapter

Type at least 2 characters to search.

↑↓ navigate · open · esc close