655cb9ca2632122b4e39d2b23441cb935f31315f
[depot.git] / connection.rb
1 print "Using native OpenBase\n"
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 => 'openbase',
10 :username => 'admin',
11 :database => 'activerecord_unittest',
12 },
13 'arunit2' => {
14 :adapter => 'openbase',
15 :username => 'admin',
16 :database => 'activerecord_unittest2'
17 }
18 }
19
20 ActiveRecord::Base.establish_connection 'arunit'
21 Course.establish_connection 'arunit2'