class method
self.database_exists?
Ruby on Rails 6.0.6
Since v6.0.6 Last seen in v7.0.10Signature
self.database_exists?(config)
No documentation comment.
Parameters
-
configreq
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