Is there a way to know if there are pending migrations which were not applied to the DB? My purpose it to avoid running code which includes migrations that were not applied. I'd like to run this task before deploying code to ensure that.