title: Cannot complete Flask-Migration
body: <p>I've setup a local Postgres DB with SQLAlchemy and cannot commit my first entry. I keep on getting this error... </p>
  
  <pre><code>ProgrammingError: (ProgrammingError) relation "user" does not exist
  LINE 1: INSERT INTO "user" (name, email, facebook_id, facebook_token...
  </code></pre>
  
  <p>It seems like the fields aren't matching to those in the database. I'm trying to migrate using flask-migrate but, when I run <code>$ python app.py db migrate</code> I get this error...</p>
  
  <pre><code>raise util.CommandError("No such revision '%s'" % id_)
  alembic.util.CommandError: No such revision '39408d6b248d'
  </code></pre>
  
  <p>It may be best to delete everything and start from scratch as it seems I have botched my database setup and / or migration but I'm not sure how to. </p>
  
  <p><strong>UPDATE</strong>: The database has started working now (I dropped and created it again). However, I'm still getting the same error trying to run migrations and it turns out the "no such revision '39408d6b248d' is referring to a migration from an unrelated project. I re-installed flask-migrate but same error. </p>