Fixed the what_if_I_upgrade check
Moved up another if
Merge pull request #1527 from gem/db-migration-check

Fixed the what_if_I_upgrade check