Skip migrations when testing generators.

Closes #2154