AfterCommitQueue#run_after_commit_or_now does not correctly support multiple databases
AfterCommitQueue#run_after_commit_or_now
Problem with -
It uses ApplicationRecord
andApplicationRecord::Base
so it will not work correctly forCi::ApplicationRecord
models
Follow-up
- Transactional problems with run_after_commit_or_now, moved to #347516
Edited by Thong Kuah