specs: only run migrations if necessary