Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit 78903731e432dc3ad2a00cb3b30741b962f3afcd 1 parent bff89a2
Yves Senn senny authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  activerecord/lib/active_record/railties/databases.rake
2  activerecord/lib/active_record/railties/databases.rake
View
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.