Sha256: b80cc7a8bcf010953dbec0d856f74f6f71964b6b87ae2004fc8abd04227bb446
Contents?: true
Size: 418 Bytes
Versions: 1
Compression:
Stored size: 418 Bytes
Contents
require 'active_record' require 'erb' module Travis module Database class << self def connect ActiveRecord::Base.default_timezone = :utc ActiveRecord::Base.logger = Travis.logger ActiveRecord::Base.configurations = { env => Travis.config.database } ActiveRecord::Base.establish_connection(env) end def env Travis.config.env end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
travis-core-0.0.1 | lib/travis/database.rb |