Skip to content

A platform for community discussion. Free, open, simple.

FIX: If we run `db:migrate` on its own, it should load the environment

Robin Ward480e2ec5231a
diff --git a/lib/tasks/db.rake b/lib/tasks/db.rake
index c0ceea5e193..d1af8e7a069 100644
--- a/lib/tasks/db.rake
+++ b/lib/tasks/db.rake
@@ -60,7 +60,7 @@ task 'db:rollback' => ['environment', 'set_locale'] do |_, args|
end
# we need to run seed_fu every time we run rake db:migrate
-task 'db:migrate' => ['environment', 'set_locale'] do |_, args|
+task 'db:migrate' => ['load_config', 'environment', 'set_locale'] do |_, args|
ActiveRecord::Tasks::DatabaseTasks.migrate
Rake::Task['db:_dump'].invoke