提交 9ca49e0f 编写于 作者: R Rafael França 提交者: GitHub

Merge pull request #28891 from sodabrew/patch-1

Remove mysql2 database adapter default username root
......@@ -10,8 +10,6 @@ module ConnectionHandling # :nodoc:
# Establishes a connection to the database that's used by all Active Record objects.
def mysql2_connection(config)
config = config.symbolize_keys
config[:username] = "root" if config[:username].nil?
config[:flags] ||= 0
if config[:flags].kind_of? Array
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册