2004-11-23 20:04:44 -05:00
|
|
|
print "Using native SQLServer\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 => 'sqlserver',
|
|
|
|
:host => 'localhost',
|
|
|
|
:username => 'sa',
|
|
|
|
:database => 'activerecord_unittest'
|
|
|
|
},
|
|
|
|
'arunit2' => {
|
|
|
|
:adapter => 'sqlserver',
|
|
|
|
:host => 'localhost',
|
|
|
|
:username => 'sa',
|
|
|
|
:database => 'activerecord_unittest2'
|
|
|
|
}
|
|
|
|
}
|
2005-03-22 19:56:13 -05:00
|
|
|
|
2006-07-10 15:27:04 -04:00
|
|
|
ActiveRecord::Base.establish_connection 'arunit'
|
|
|
|
Course.establish_connection 'arunit2'
|