Sha256: c895646114ef58173c6d466278d8a7d649732515869a15cc23112dbf499bd7e8

Contents?: true

Size: 318 Bytes

Versions: 6

Compression:

Stored size: 318 Bytes

Contents

puts "Using native PostgreSQL"
require "active_record"
require 'logger'

ActiveRecord::Base.logger = Logger.new("debug.log")

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

ActiveRecord::Base.establish_connection 'unit'

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
arel-0.3.1 spec/connections/postgresql_connection.rb
arel-0.3.0 spec/connections/postgresql_connection.rb
arel-0.2.1 spec/connections/postgresql_connection.rb
arel-0.2.0 spec/connections/postgresql_connection.rb
arel-0.2.pre spec/connections/postgresql_connection.rb
arel-0.1.2 spec/connections/postgresql_connection.rb