title: How do you keep Rails 4 test db in sync?
body: <p>I have:</p>
  
  <pre><code>ActiveRecord::Migration.maintain_test_schema!
  </code></pre>
  
  <p>but when I change my dev db with a new migration I get:</p>
  
  <pre><code>Migrations are pending. To resolve this issue, run:
  
      bin/rake db:migrate RAILS_ENV=test
  </code></pre>
  
  <p>and when I try that it assumes the test db is blank and wants to run migration #1 but that errors.</p>
  
  <p>It's like the schema_migrations tables is missing from the test db.</p>