Sha256: 46fbf043f9f643b73f5970a2260952639980e9676f916212025cb55ace441116
Contents?: true
Size: 310 Bytes
Versions: 14
Compression:
Stored size: 310 Bytes
Contents
require 'active_record' require 'yaml' require 'logger' path = File.dirname(__FILE__) + '/database.yml' dbfile = File.open(path) dbconfig = YAML::load(dbfile) ActiveRecord::Base.establish_connection(dbconfig) ActiveRecord::Base.logger = Logger.new(STDERR) class User < ActiveRecord::Base end puts User.count
Version data entries
14 entries across 14 versions & 1 rubygems