快速查询当前数据库连接信息
Rails.configuration.database_configuration[Rails.env]
OR
Rails.application.config.database_configuration[Rails.env]
OR
ActiveRecord::Base.connection_config