Sha256: acbb844b9d840ce52f36ef69fbdeee5f8bd5ac083158e4876874bc521acc397c

Contents?: true

Size: 379 Bytes

Versions: 5

Compression:

Stored size: 379 Bytes

Contents

print "Using PostgreSQL\n"
require 'logger'

ActiveRecord::Base.logger = Logger.new(File.open("postgresql.log", "w"))

ActiveRecord::Base.configurations = {
  'schema_plus' => {
    :adapter => 'postgresql',
    :username => ENV['POSTGRES_DB_USER'],
    :database => 'schema_plus_test',
    :min_messages => 'warning'
  }

}

ActiveRecord::Base.establish_connection :schema_plus

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
schema_plus-1.5.3 spec/connections/postgresql/connection.rb
schema_plus-1.5.2 spec/connections/postgresql/connection.rb
schema_plus-1.5.1 spec/connections/postgresql/connection.rb
schema_plus-1.5.0 spec/connections/postgresql/connection.rb
schema_plus-1.4.1 spec/connections/postgresql/connection.rb