Raise errors in development mode when there are pending migrations to run.