mirror of
https://github.com/discourse/discourse.git
synced 2025-01-31 02:29:31 +08:00
FIX: Seed multisite dbs after migrating in development (#17017)
Dumping the schema cache reset the current_db and we only need to do this once.
This commit is contained in:
parent
35e17ce115
commit
d7bc395182
|
@ -230,14 +230,10 @@ task 'db:migrate' => ['load_config', 'environment', 'set_locale'] do |_, args|
|
|||
|
||||
ActiveRecord::Tasks::DatabaseTasks.migrate
|
||||
|
||||
if !Discourse.is_parallel_test?
|
||||
Rake::Task['db:_dump'].invoke
|
||||
end
|
||||
|
||||
SeedFu.quiet = true
|
||||
SeedFu.seed(SeedHelper.paths, SeedHelper.filter)
|
||||
|
||||
if Rails.env.development?
|
||||
if Rails.env.development? && !ENV["RAILS_DB"]
|
||||
Rake::Task['db:schema:cache:dump'].invoke
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user