mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
12 lines
247 B
Ruby
12 lines
247 B
Ruby
require "activerecord"
|
|
puts "Using native PostgreSQL"
|
|
|
|
ActiveRecord::Base.configurations = {
|
|
'unit' => {
|
|
:adapter => 'postgresql',
|
|
:encoding => 'utf8',
|
|
:database => 'arel_unit',
|
|
}
|
|
}
|
|
|
|
ActiveRecord::Base.establish_connection 'unit'
|