~michaelforrest/use-case-mapper/trunk

« back to all changes in this revision

Viewing changes to vendor/rails/activerecord/test/connections/jdbc_jdbcderby/connection.rb

  • Committer: Michael Forrest
  • Date: 2010-10-15 16:28:50 UTC
  • Revision ID: michael.forrest@canonical.com-20101015162850-tj2vchanv0kr0dun
refrozeĀ gems

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
print "Using Derby via JRuby, activerecord-jdbc-adapter and activerecord-jdbcderby-adapter\n"
 
2
require_dependency 'models/course'
 
3
require 'logger'
 
4
ActiveRecord::Base.logger = Logger.new("debug.log")
 
5
 
 
6
ActiveRecord::Base.configurations = {
 
7
  'arunit' => {
 
8
    :adapter  => 'jdbcderby',
 
9
    :database => 'activerecord_unittest'
 
10
  },
 
11
  'arunit2' => {
 
12
    :adapter  => 'jdbcderby',
 
13
    :database => 'activerecord_unittest2'
 
14
  }
 
15
}
 
16
 
 
17
ActiveRecord::Base.establish_connection 'arunit'
 
18
Course.establish_connection 'arunit2'