'Goes through all the migrations, and invalidates all cached modules.'

@staticmethod
def invalidate_all_modules():

    for migrations in all_migrations():
        for migration in migrations:
            migration.invalidate_module()
