Sha256: c9f2aef5733849425c5b5e32ce2fc22f96499eb960f3ba068b969684bc176b77
Contents?: true
Size: 257 Bytes
Versions: 1
Compression:
Stored size: 257 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.1 | connect_db.rb |