mirror of
https://github.com/discourse/discourse.git
synced 2025-01-19 02:42:45 +08:00
FIX: If we run db:migrate
on its own, it should load the environment
This commit is contained in:
parent
ce78eff888
commit
480e2ec523
|
@ -60,7 +60,7 @@ task 'db:rollback' => ['environment', 'set_locale'] do |_, args|
|
||||||
end
|
end
|
||||||
|
|
||||||
# we need to run seed_fu every time we run rake db:migrate
|
# 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
|
ActiveRecord::Tasks::DatabaseTasks.migrate
|
||||||
|
|
||||||
Rake::Task['db:_dump'].invoke
|
Rake::Task['db:_dump'].invoke
|
||||||
|
|
Loading…
Reference in New Issue
Block a user