diff options
Diffstat (limited to 'spec/connections/mysql_connection.rb')
-rw-r--r-- | spec/connections/mysql_connection.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/spec/connections/mysql_connection.rb b/spec/connections/mysql_connection.rb new file mode 100644 index 0000000000..a58ddc35ef --- /dev/null +++ b/spec/connections/mysql_connection.rb @@ -0,0 +1,15 @@ +require "activerecord" +puts "Using native MySQL" + +ActiveRecord::Base.logger = Logger.new("debug.log") + +ActiveRecord::Base.configurations = { + 'unit' => { + :adapter => 'mysql', + :username => 'rails', + :encoding => 'utf8', + :database => 'arel_unit', + } +} + +ActiveRecord::Base.establish_connection 'unit' |