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

Version Path
learn-generate-1.0.16 lib/templates/activerecord/config/environment.rb
learn-generate-1.0.15 lib/templates/activerecord/config/environment.rb
learn-generate-1.0.14 lib/templates/activerecord/config/environment.rb
learn-generate-1.0.13 lib/templates/activerecord/config/environment.rb
learn-generate-1.0.12 lib/templates/activerecord/config/environment.rb
learn-generate-1.0.11 lib/templates/activerecord/config/environment.rb
learn-generate-1.0.1 lib/templates/activerecord/config/environment.rb
learn-generate-1.0.0 lib/templates/activerecord/config/environment.rb