blob: bcba2b3843b51a83218cd2459294c358137a5a30 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
require "rubygems"
require "activerecord"
puts "Using native MySQL"
ActiveRecord::Base.logger = Logger.new("debug.log")
ActiveRecord::Base.configurations = {
'unit' => {
:adapter => 'mysql',
:username => 'root',
:encoding => 'utf8',
:database => 'arel_unit',
}
}
ActiveRecord::Base.establish_connection 'unit'
|