aboutsummaryrefslogtreecommitdiffstats
path: root/spec/support/connections/postgresql_connection.rb
blob: 692533d10d184586cc9e1562a3e45711532d39bd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
puts "Using native PostgreSQL"
require "active_record"
require 'logger'

ENV['ADAPTER'] = 'postgresql'

ActiveRecord::Base.configurations = {
  'unit' => {
    :adapter  => 'postgresql',
    :encoding => 'utf8',
    :database => 'arel_unit',
  }
}