Now that multiple database support has landed in Rails, I was wondering if Rails migration should be updated such that it is thread safe. Since migration can be run against different databases, one can speed up migrations by running it concurrently using threads. This was what we tried to do at Discourse but we quickly ran into thread-safety issues. In particular, lines like the following were causing problems for us.
Was wondering if the core team has any thoughts about this.