Sha256: 4adf7c841be3e21a42ae83e1e1e4a4256e9e4e7416b29998558707582128d83b

Contents?: true

Size: 256 Bytes

Versions: 1

Compression:

Stored size: 256 Bytes

Contents

# frozen_string_literal: true
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.2 connect_db.rb