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:
Daniel Waterworth 2022-06-06 14:43:43 -05:00 committed by GitHub
parent 35e17ce115
commit d7bc395182
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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