c01d864a8b8aa5da9e653ea1f90676a0bb32d8bd
[depot.git] / connection.rb
1 puts 'Using native Frontbase'
2 require_dependency 'models/course'
3 require 'logger'
4
5 ActiveRecord::Base.logger = Logger.new("debug.log")
6
7 ActiveRecord::Base.configurations = {
8 'arunit' => {
9 :adapter => 'frontbase',
10 :host => 'localhost',
11 :username => 'rails',
12 :password => '',
13 :database => 'activerecord_unittest',
14 :session_name => "unittest-#{$$}"
15 },
16 'arunit2' => {
17 :adapter => 'frontbase',
18 :host => 'localhost',
19 :username => 'rails',
20 :password => '',
21 :database => 'activerecord_unittest2',
22 :session_name => "unittest-#{$$}"
23 }
24 }
25
26 ActiveRecord::Base.establish_connection 'arunit'
27 Course.establish_connection 'arunit2'