Changed the call to .sort.last to .max when computing the migration version. You
do not actually need to sort everything (incurs more cost than just a
simple max).