Updated for compatibility with migrations-3.2.0.