1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/spec/connections/postgresql_connection.rb
2009-05-17 17:53:40 -04:00

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'