try in_groups_of method in migration