mirror of
https://github.com/discourse/discourse.git
synced 2025-02-06 11:28:18 +00:00
e2284cf739
This reverts commit 8b46f14744d4bab9339d075825914d86da6bd5eb. It corrects the reason for the revert: We rely on SafeMigrate existing cause we call it from migrations, Zeitwerk will autoload it. Instead of previous pattern we explicitly bypass all the hacks in production mode. We need to disable SafeMigrate cause it is not thread safe. A thread safe implementation is possible but not worth the effort, we catch the issues in dev and test.