AfterCommitQueue#run_after_commit_or_now does not correctly support multiple databases
Problem with AfterCommitQueue#run_after_commit_or_now
-
It uses ApplicationRecordandApplicationRecord::Baseso it will not work correctly forCi::ApplicationRecordmodels
Follow-up
- Transactional problems with run_after_commit_or_now, moved to #347516
Edited by Thong Kuah