2005-11-16 03:18:13 -05:00
|
|
|
print "Using native Firebird\n"
|
2005-11-24 02:01:43 -05:00
|
|
|
require_dependency 'fixtures/course'
|
2005-11-16 03:18:13 -05:00
|
|
|
require 'logger'
|
|
|
|
|
|
|
|
ActiveRecord::Base.logger = Logger.new("debug.log")
|
|
|
|
|
|
|
|
db1 = 'activerecord_unittest'
|
|
|
|
db2 = 'activerecord_unittest2'
|
|
|
|
|
|
|
|
ActiveRecord::Base.establish_connection(
|
|
|
|
:adapter => "firebird",
|
|
|
|
:host => "localhost",
|
|
|
|
:username => "rails",
|
|
|
|
:password => "rails",
|
2006-06-03 17:57:03 -04:00
|
|
|
:database => db1,
|
|
|
|
:charset => "UTF8"
|
2005-11-16 03:18:13 -05:00
|
|
|
)
|
|
|
|
|
|
|
|
Course.establish_connection(
|
|
|
|
:adapter => "firebird",
|
|
|
|
:host => "localhost",
|
|
|
|
:username => "rails",
|
|
|
|
:password => "rails",
|
|
|
|
:database => db2
|
|
|
|
)
|