diff options
author | Yves Senn <yves.senn@gmail.com> | 2013-05-21 15:47:57 +0200 |
---|---|---|
committer | Yves Senn <yves.senn@gmail.com> | 2013-05-21 15:47:57 +0200 |
commit | 78903731e432dc3ad2a00cb3b30741b962f3afcd (patch) | |
tree | 3c935cdd62b164ca6890c8afa7afe3ff26072edc /activerecord/lib/active_record/railties | |
parent | bff89a2022aedec60929f6d6744eefc84a5c102a (diff) | |
download | rails-78903731e432dc3ad2a00cb3b30741b962f3afcd.tar.gz rails-78903731e432dc3ad2a00cb3b30741b962f3afcd.tar.bz2 rails-78903731e432dc3ad2a00cb3b30741b962f3afcd.zip |
the rake task `db:test:prepare` needs to load the configuration
Without loading the configuration the task will not perform any work.
Diffstat (limited to 'activerecord/lib/active_record/railties')
-rw-r--r-- | activerecord/lib/active_record/railties/databases.rake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/railties/databases.rake b/activerecord/lib/active_record/railties/databases.rake index 434af3c5f8..f69e9b2217 100644 --- a/activerecord/lib/active_record/railties/databases.rake +++ b/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 |