diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-05-21 07:13:13 -0700 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-05-21 07:13:13 -0700 |
commit | f47b4236e089b07cb683ee9b7ff8b06111a0ec10 (patch) | |
tree | 0a1d5cfdd9bc156b987e6934fe7c6826a16b2b8d /activerecord/lib | |
parent | 36e7be2214ec9bcc8ca0f3545ad1d3b687259806 (diff) | |
parent | 78903731e432dc3ad2a00cb3b30741b962f3afcd (diff) | |
download | rails-f47b4236e089b07cb683ee9b7ff8b06111a0ec10.tar.gz rails-f47b4236e089b07cb683ee9b7ff8b06111a0ec10.tar.bz2 rails-f47b4236e089b07cb683ee9b7ff8b06111a0ec10.zip |
Merge pull request #10711 from senny/10660_rake_db_test_prepare_needs_config
the rake task `db:test:prepare` needs to load the configuration
Diffstat (limited to 'activerecord/lib')
-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 |