Migrate:multisite fails on second site when migrating from scratch

We got to catch every occurrence of corruption of our schema cache, cause its like a little timebomb waiting to explode.

  • migration 1 … corrupts schema cache
    3 years pass
  • migration N … incorrectly uses active record models (which is not something we should be doing) and then explodes.

The best thing is simply never ever to touch AR models in migrations. I would be far more open to a fix that hard bans that from migrations and deal with the pain of fixing this in the existing migrations we have.

4 Likes