They finally replied saying we should not use models in initialisers
There are two problem on loading Active Record models in initializers, one of them is that it will mess with the code reload, those models may not be able to be reloaded anymore.
In the end I followed this gem's code and modified the approach for crowdAI
I had some trouble with ActiveStorage and the GDPR export gem, and in fact logged it with the Rails core team. https://github.com/rails/rails/issues/32933
They finally replied saying we should not use models in initialisers
In the end I followed this gem's code and modified the approach for crowdAI