blob: 01d65f09dccd9affbdec90e084a40bfd7524b1fb (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
require "rubygems"
require "activerecord"
puts "Using native PostgreSQL"
ActiveRecord::Base.logger = Logger.new("debug.log")
ActiveRecord::Base.configurations = {
'unit' => {
:adapter => 'postgresql',
:encoding => 'utf8',
:database => 'arel_unit',
}
}
ActiveRecord::Base.establish_connection 'unit'
|