2006-03-18 11:50:25 -05:00
|
|
|
print "Using native OpenBase\n"
|
2008-01-18 02:30:42 -05:00
|
|
|
require_dependency 'models/course'
|
2006-03-18 11:50:25 -05:00
|
|
|
require 'logger'
|
|
|
|
|
|
|
|
ActiveRecord::Base.logger = Logger.new("debug.log")
|
|
|
|
|
2006-07-10 15:27:04 -04:00
|
|
|
ActiveRecord::Base.configurations = {
|
|
|
|
'arunit' => {
|
|
|
|
:adapter => 'openbase',
|
|
|
|
:username => 'admin',
|
|
|
|
:database => 'activerecord_unittest',
|
|
|
|
},
|
|
|
|
'arunit2' => {
|
|
|
|
:adapter => 'openbase',
|
|
|
|
:username => 'admin',
|
|
|
|
:database => 'activerecord_unittest2'
|
|
|
|
}
|
|
|
|
}
|
2006-03-18 11:50:25 -05:00
|
|
|
|
2006-07-10 15:27:04 -04:00
|
|
|
ActiveRecord::Base.establish_connection 'arunit'
|
|
|
|
Course.establish_connection 'arunit2'
|