2004-11-23 20:04:44 -05:00
|
|
|
print "Using native PostgreSQL\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 => 'postgresql',
|
|
|
|
:username => 'postgres',
|
|
|
|
:database => 'activerecord_unittest',
|
|
|
|
:min_messages => 'warning'
|
|
|
|
},
|
|
|
|
'arunit2' => {
|
|
|
|
:adapter => 'postgresql',
|
|
|
|
:username => 'postgres',
|
|
|
|
:database => 'activerecord_unittest2',
|
|
|
|
:min_messages => 'warning'
|
|
|
|
}
|
|
|
|
}
|
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'
|