2004-11-23 20:04:44 -05:00
|
|
|
print "Using native MySQL\n"
|
2005-11-24 02:01:43 -05:00
|
|
|
require_dependency 'fixtures/course'
|
2004-11-23 20:04:44 -05:00
|
|
|
require 'logger'
|
|
|
|
|
|
|
|
ActiveRecord::Base.logger = Logger.new("debug.log")
|
|
|
|
|
2006-07-10 15:27:04 -04:00
|
|
|
ActiveRecord::Base.configurations = {
|
|
|
|
'arunit' => {
|
|
|
|
:adapter => 'mysql',
|
|
|
|
:username => 'rails',
|
|
|
|
:encoding => 'utf8',
|
|
|
|
:database => 'activerecord_unittest',
|
|
|
|
},
|
|
|
|
'arunit2' => {
|
|
|
|
:adapter => 'mysql',
|
|
|
|
:username => 'rails',
|
|
|
|
:database => 'activerecord_unittest2'
|
|
|
|
}
|
|
|
|
}
|
2004-11-23 20:04:44 -05:00
|
|
|
|
2006-07-10 15:27:04 -04:00
|
|
|
ActiveRecord::Base.establish_connection 'arunit'
|
|
|
|
Course.establish_connection 'arunit2'
|