<blockquote>
<p>nobody has ever been able to work out under what circumstance this is necessary<br>
[...]<br>
sometimes it doesn't because the test database is cloned from the development one</p>
</blockquote>
<p>Does this happens when setting up a new dev/test instance?</p>
<p>In a new dev VM, to be able to run the tests, I have to do<br>
<code>rake db:migrate RAILS_ENV=test</code><br>
or<br>
<code>rake db:test:prepare</code> (we could use this as it loads <code>struture.sql</code> and is quick)</p>
<p>It seems that the test DB is kept up to date with <code>struture.sql</code><br>
<a href="http://guides.rubyonrails.org/testing.html#maintaining-the-test-database-schema">http://guides.rubyonrails.org/testing.html#maintaining-the-test-database-schema</a><br>
it should be when it already exists.</p>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/openstreetmap/openstreetmap-website/issues/1121#issuecomment-168100884">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABWnLcDVhYruNCfca84xKsuHLGbfDwxYks5pVHI4gaJpZM4G9Cd7.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
<link itemprop="url" href="https://github.com/openstreetmap/openstreetmap-website/issues/1121#issuecomment-168100884"></link>
<meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>