blob: b4e27f238099addc36933aff5e9bfb7050812cba (
plain) (
tree)
|
|
require "activerecord"
puts "Using native MySQL"
ActiveRecord::Base.configurations = {
'unit' => {
:adapter => 'mysql',
:username => 'rails',
:encoding => 'utf8',
:database => 'arel_unit',
}
}
ActiveRecord::Base.establish_connection 'unit'
|