DEV: Silence successful db:migrate output in docker.rake (#24417)

Followup to 9449a0e0ed
This commit is contained in:
David Taylor 2023-11-16 16:07:36 +00:00 committed by GitHub
parent 9449a0e0ed
commit 849002e90b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -69,8 +69,12 @@ def migrate_databases(parallel: false, load_plugins: false)
migrate_env = load_plugins ? "LOAD_PLUGINS=1" : "LOAD_PLUGINS=0"
success = true
success &&= run_or_fail("#{migrate_env} bundle exec rake db:migrate")
success &&= run_or_fail("#{migrate_env} bundle exec rake parallel:migrate") if parallel
success &&=
run_or_fail("#{migrate_env} script/silence_successful_output bundle exec rake db:migrate")
success &&=
run_or_fail(
"#{migrate_env} script/silence_successful_output bundle exec rake parallel:migrate",
) if parallel
success
end