aboutsummaryrefslogtreecommitdiffstats
path: root/spec/support/connections/mysql_connection.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/support/connections/mysql_connection.rb')
-rw-r--r--spec/support/connections/mysql_connection.rb6
1 files changed, 2 insertions, 4 deletions
diff --git a/spec/support/connections/mysql_connection.rb b/spec/support/connections/mysql_connection.rb
index 66a53b5037..de9d05c2ce 100644
--- a/spec/support/connections/mysql_connection.rb
+++ b/spec/support/connections/mysql_connection.rb
@@ -2,7 +2,7 @@ puts "Using native MySQL"
require "active_record"
require 'logger'
-ActiveRecord::Base.logger = Logger.new("debug.log")
+ENV['ADAPTER'] = 'mysql'
ActiveRecord::Base.configurations = {
'unit' => {
@@ -11,6 +11,4 @@ ActiveRecord::Base.configurations = {
:encoding => 'utf8',
:database => 'arel_unit',
}
-}
-
-ActiveRecord::Base.establish_connection 'unit'
+} \ No newline at end of file