aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record
diff options
context:
space:
mode:
authorAaron Stone <aaron@serendipity.cx>2017-04-26 13:33:53 -0700
committerGitHub <noreply@github.com>2017-04-26 13:33:53 -0700
commit1ea09e2ea04d282c8ef6182b4496931ba7dc785a (patch)
tree5e3968823ebeee12d83271788c5398600e2b9778 /activerecord/lib/active_record
parentce2abffc0e29f562da26f89d7f07aeaf06a9cbcd (diff)
downloadrails-1ea09e2ea04d282c8ef6182b4496931ba7dc785a.tar.gz
rails-1ea09e2ea04d282c8ef6182b4496931ba7dc785a.tar.bz2
rails-1ea09e2ea04d282c8ef6182b4496931ba7dc785a.zip
Remove mysql2 database adapter default username root
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r--activerecord/lib/active_record/connection_adapters/mysql2_adapter.rb2
1 files changed, 0 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/mysql2_adapter.rb b/activerecord/lib/active_record/connection_adapters/mysql2_adapter.rb
index 45e400b75b..af55cfe2f6 100644
--- a/activerecord/lib/active_record/connection_adapters/mysql2_adapter.rb
+++ b/activerecord/lib/active_record/connection_adapters/mysql2_adapter.rb
@@ -10,8 +10,6 @@ module ActiveRecord
# 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