Sha256: 70cca4f23513abdf988f1b38cd4af13d2772b38fc6a49cd245009b5e5683212c
Contents?: true
Size: 567 Bytes
Versions: 8
Compression:
Stored size: 567 Bytes
Contents
require 'bundler/setup' Bundler.require require 'rake' require 'active_record' require 'yaml/store' require 'ostruct' DBNAME = "set_db_name" Dir[File.join(File.dirname(__FILE__), "../app/models", "*.rb")].each {|f| require f} Dir[File.join(File.dirname(__FILE__), "../lib/support", "*.rb")].each {|f| require f} DBRegistry[ENV["ACTIVE_RECORD_ENV"]].connect! DB = ActiveRecord::Base.connection if ENV["ACTIVE_RECORD_ENV"] == "test" ActiveRecord::Migration.verbose = false end RAKE_APP ||= begin app = Rake.application app.init app.load_rakefile app end
Version data entries
8 entries across 8 versions & 1 rubygems