Fix error in migration due to backward incompatibility of find_each method.