Sha256: b0dd5855d96342d1c98ab71fc6b35b8eb6a27545c6a71ae7989306b30a6b6135

Contents?: true

Size: 227 Bytes

Versions: 1

Compression:

Stored size: 227 Bytes

Contents

require 'erb'
require 'yaml'
require 'active_record'

config_file = File.expand_path('../database.yml', __FILE__)
config = YAML::load(ERB.new(IO.read(config_file)).result)['db']

ActiveRecord::Base.establish_connection(config)

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
active_record-pg_generate_series-0.1.0 connect_db.rb