adds helper method to know when a migration is needed