instance method
local_database?
Ruby on Rails 7.2.3
Since v4.0.13 PrivateSignature
local_database?(db_config)
No documentation comment.
Parameters
-
db_configreq
Source
# File activerecord/lib/active_record/tasks/database_tasks.rb, line 629
def local_database?(db_config)
host = db_config.host
host.blank? || LOCAL_HOSTS.include?(host)
end
Defined in activerecord/lib/active_record/tasks/database_tasks.rb line 629
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::Tasks::DatabaseTasks