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











                                     
                                              
require "activerecord"
puts "Using native MySQL"

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

ActiveRecord::Base.establish_connection 'unit'