title: Is there a way to automatically have a "rake db:migrate RAILS_ENV=test" after "rake db:migrate" in development environment?
body: <p>Is there a way to automatically do a <code>rake db:migrate RAILS_ENV=test</code> after each <code>rake db:migrate</code> when in development environment?</p>
  
  <p>I have <em><a href="https://github.com/guard/guard" rel="noreferrer">guard</a></em> and <em><a href="https://github.com/guard/guard-rspec" rel="noreferrer">guard-rspec</a></em> running, and I am really annoyed about the failing tests, even if it works manually in the browser.</p>
  
  <p>It costs me at least 15 minutes every time I had a pause from development, to figure out that I simply forgot to call <code>rake db:migrate:test</code> after the change of the database.</p>
  
  <p>Since I am already using <em>guard</em> I thought about adding <em><a href="https://github.com/rubyist/guard-rake" rel="noreferrer">guard-rake</a></em> to the project also, but I dont know which file I should watch. When watching <strong>development.sqlite3</strong>, <code>rake db:migrate RAILS_ENV=test</code> would be fired every time I do something with my records through the browser, so this is not really what I want.</p>
  
  <p>Can someone help me with my problem?</p>