Fixes issue where ToApply was not applying valid migrations

ToApply was applying a comparison operator that relied upon string
alphanumeric ordering. This means that a migration named
"10_alter_table.sql" would be seen as a lesser versioned migration than
one labeled "2_create_table.sql".

This patch removes the comparison in favor of an exact Id match.