Sha256: 37b700ad2bdf8bf8263570a645809db23e4bbdc17f272d2a8592b4c35ac63849
Contents?: true
Size: 382 Bytes
Versions: 23
Compression:
Stored size: 382 Bytes
Contents
require 'rubygems' require "#{File.dirname(__FILE__)}/../lib/is_paranoid" require 'activerecord' require 'yaml' require 'spec' def connect(environment) conf = YAML::load(File.open(File.dirname(__FILE__) + '/database.yml')) ActiveRecord::Base.establish_connection(conf[environment]) end # Open ActiveRecord connection connect('test') load(File.dirname(__FILE__) + "/schema.rb")
Version data entries
23 entries across 23 versions & 8 rubygems