Update v2 migration command to support AppModelMixin when present.