Permalink
Browse files

the rake task `db:test:prepare` needs to load the configuration

Without loading the configuration the task will not perform any work.
  • Loading branch information...
1 parent bff89a2 commit 78903731e432dc3ad2a00cb3b30741b962f3afcd @senny senny committed May 21, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/lib/active_record/railties/databases.rake
View
2 activerecord/lib/active_record/railties/databases.rake
@@ -360,7 +360,7 @@ db_namespace = namespace :db do
end
# desc 'Check for pending migrations and load the test schema'
- task :prepare do
+ task :prepare => :load_config do
unless ActiveRecord::Base.configurations.blank?
db_namespace['test:load'].invoke
end

0 comments on commit 7890373

Please sign in to comment.