<span style="color: transparent; display: none; height: 0; max-height: 0; max-width: 0; opacity: 0; overflow: hidden; mso-hide: all; visibility: hidden; width: 0;">
  <p dir="auto">We have code to run the migrations in CI, mostly to make sure that when they run, they produce the same results as structure.sql</p>
<p dir="auto">When we upgraded to Rails 8, however, these migrations no longer run. I believe it's because, if rails spots an empty database, it now ignores the migrations and just runs the structure - but I'm not yet certain on that.</p>
<p dir="auto">Here's two CI runs to compare, <a href="https://github.com/openstreetmap/openstreetmap-website/actions/runs/13957644201/job/39072542124">before</a> and <a href="https://github.com/openstreetmap/openstreetmap-website/actions/runs/14069719853/job/39400815755">after</a> the rails 8 upgrade</p>
<p dir="auto"><a href="https://github.com/user-attachments/assets/cde31140-1a02-4f85-91c6-add60c8f9aab">Screenshot.from.2025-03-26.15-31-11.png (view on web)</a></p>
<p dir="auto"><a href="https://github.com/user-attachments/assets/02ed4d55-557b-4eef-9dba-caf64a566554">Screenshot.from.2025-03-26.15-32-02.png (view on web)</a></p>
<p dir="auto">We need to figure out how to make rails 8 actually run the migrations.</p>
<p dir="auto">(This new behaviour also masked <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="2945831026" data-permission-text="Title is private" data-url="https://github.com/openstreetmap/openstreetmap-website/issues/5845" data-hovercard-type="issue" data-hovercard-url="/openstreetmap/openstreetmap-website/issues/5845/hovercard" href="https://github.com/openstreetmap/openstreetmap-website/issues/5845">#5845</a> / <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="2950037066" data-permission-text="Title is private" data-url="https://github.com/openstreetmap/openstreetmap-website/issues/5846" data-hovercard-type="pull_request" data-hovercard-url="/openstreetmap/openstreetmap-website/pull/5846/hovercard" href="https://github.com/openstreetmap/openstreetmap-website/pull/5846">#5846</a> from being detected by CI)</p><p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/issues/5847">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLPCKHTOX4GE3XYJQED2WK33LAVCNFSM6AAAAABZ2VFR2GVHI2DSMVQWIX3LMV43ASLTON2WKOZSHE2TAMBVG42TEMQ">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLNB4QMM4ZIUU6WF73D2WK33LA5CNFSM6AAAAABZ2VFR2GWGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHK7VSOGI.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><openstreetmap/openstreetmap-website/issues/5847</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
</span>


<div style="display: flex; flex-wrap: wrap; white-space: pre-wrap; align-items: center; "><img alt="gravitystorm" height="20" width="20" style="border-radius:50%; margin-right: 4px;" decoding="async" src="https://avatars.githubusercontent.com/u/360803?s=20&v=4" /><strong>gravitystorm</strong> created an issue <a href="https://github.com/openstreetmap/openstreetmap-website/issues/5847">(openstreetmap/openstreetmap-website#5847)</a></div>
<p dir="auto">We have code to run the migrations in CI, mostly to make sure that when they run, they produce the same results as structure.sql</p>
<p dir="auto">When we upgraded to Rails 8, however, these migrations no longer run. I believe it's because, if rails spots an empty database, it now ignores the migrations and just runs the structure - but I'm not yet certain on that.</p>
<p dir="auto">Here's two CI runs to compare, <a href="https://github.com/openstreetmap/openstreetmap-website/actions/runs/13957644201/job/39072542124">before</a> and <a href="https://github.com/openstreetmap/openstreetmap-website/actions/runs/14069719853/job/39400815755">after</a> the rails 8 upgrade</p>
<p dir="auto"><a href="https://github.com/user-attachments/assets/cde31140-1a02-4f85-91c6-add60c8f9aab">Screenshot.from.2025-03-26.15-31-11.png (view on web)</a></p>
<p dir="auto"><a href="https://github.com/user-attachments/assets/02ed4d55-557b-4eef-9dba-caf64a566554">Screenshot.from.2025-03-26.15-32-02.png (view on web)</a></p>
<p dir="auto">We need to figure out how to make rails 8 actually run the migrations.</p>
<p dir="auto">(This new behaviour also masked <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="2945831026" data-permission-text="Title is private" data-url="https://github.com/openstreetmap/openstreetmap-website/issues/5845" data-hovercard-type="issue" data-hovercard-url="/openstreetmap/openstreetmap-website/issues/5845/hovercard" href="https://github.com/openstreetmap/openstreetmap-website/issues/5845">#5845</a> / <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="2950037066" data-permission-text="Title is private" data-url="https://github.com/openstreetmap/openstreetmap-website/issues/5846" data-hovercard-type="pull_request" data-hovercard-url="/openstreetmap/openstreetmap-website/pull/5846/hovercard" href="https://github.com/openstreetmap/openstreetmap-website/pull/5846">#5846</a> from being detected by CI)</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/issues/5847">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLPCKHTOX4GE3XYJQED2WK33LAVCNFSM6AAAAABZ2VFR2GVHI2DSMVQWIX3LMV43ASLTON2WKOZSHE2TAMBVG42TEMQ">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLNB4QMM4ZIUU6WF73D2WK33LA5CNFSM6AAAAABZ2VFR2GWGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHK7VSOGI.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><openstreetmap/openstreetmap-website/issues/5847</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>

<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/issues/5847",
"url": "https://github.com/openstreetmap/openstreetmap-website/issues/5847",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>