Sha256: 5b8fd70c698678e2792b803abce81bea7b1cab4a989581fdb3d1138bc1fdb7ab

Contents?: true

Size: 388 Bytes

Versions: 3

Compression:

Stored size: 388 Bytes

Contents

require 'active_record'
require 'logger'
test_orm_dir = File.dirname(__FILE__)
dbconf = YAML::load(File.open(File.join(test_orm_dir, 'rails', 'config', 'database.yml')))
ActiveRecord::Base.establish_connection(dbconf["development"])
ActiveRecord::Base.logger = Logger.new(File.join(test_orm_dir, 'log', 'database.log'))
ActiveRecord::Migrator.up(File.join(test_orm_dir, 'db', 'migrate'))

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
lolita-menu-0.4.2 test_orm/active_record.rb
lolita-menu-0.4.1 test_orm/active_record.rb
lolita-menu-0.4.0 test_orm/active_record.rb