1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Fix AR's rake tasks to work with the Rails::Application refactor

This commit is contained in:
Carlhuda 2010-01-25 17:55:54 -08:00
parent abad097016
commit 64f8c87b1d

View file

@ -1,7 +1,7 @@
namespace :db do
task :load_config => :rails_env do
require 'active_record'
ActiveRecord::Base.configurations = Rails::Configuration.new.database_configuration
ActiveRecord::Base.configurations = Rails::Application.config.database_configuration
end
namespace :create do