~michaelforrest/use-case-mapper/trunk

« back to all changes in this revision

Viewing changes to vendor/rails/activerecord/test/connections/native_postgresql/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 native PostgreSQL\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  => 'postgresql',
 
10
    :database => 'activerecord_unittest',
 
11
    :min_messages => 'warning'
 
12
  },
 
13
  'arunit2' => {
 
14
    :adapter  => 'postgresql',
 
15
    :database => 'activerecord_unittest2',
 
16
    :min_messages => 'warning'
 
17
  }
 
18
}
 
19
 
 
20
ActiveRecord::Base.establish_connection 'arunit'
 
21
Course.establish_connection 'arunit2'