aboutsummaryrefslogblamecommitdiffstats
path: root/spec/support/connections/mysql_connection.rb
blob: c924c27080cd5448b4587e4e7983236ff836f29c (plain) (tree)
1
2
3
4
5
6
7
8
9
                         

                       
 
                        
 


                                     
                        


                             
 
puts "Using native MySQL"
require "active_record"
require 'logger'

ENV['ADAPTER'] = 'mysql'

ActiveRecord::Base.configurations = {
  'unit' => {
    :adapter  => 'mysql',
    :username => 'root',
    :encoding => 'utf8',
    :database => 'arel_unit',
  }
}