change the existed() method in migration