<p dir="auto">Continues <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="2463096308" data-permission-text="Title is private" data-url="https://github.com/openstreetmap/openstreetmap-website/issues/5069" data-hovercard-type="pull_request" data-hovercard-url="/openstreetmap/openstreetmap-website/pull/5069/hovercard" href="https://github.com/openstreetmap/openstreetmap-website/pull/5069">#5069</a>.</p>
<p dir="auto">I wrote it <a href="https://github.com/ankane/strong_migrations?tab=readme-ov-file#backfilling-data">like strong_migrations wants</a>.</p>
<p dir="auto">After the backfilling is done this should be empty:</p>
<pre class="notranslate"><code class="notranslate">SELECT * FROM user_blocks WHERE needs_view = (deactivates_at IS NOT NULL);
</code></pre>
<p dir="auto">A block either needs view or has a deactivation date.</p>

<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>  <a href='https://github.com/openstreetmap/openstreetmap-website/pull/5106'>https://github.com/openstreetmap/openstreetmap-website/pull/5106</a></p>

<h4>Commit Summary</h4>
<ul>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5106/commits/80a80b4102f830b8116d396a7d4cd351eb02a922" class="commit-link">80a80b4</a>  Backfill block deactivates_at</li>
</ul>

<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5106/files">2 files</a>)</p>
<ul>
  <li>
    <strong>A</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5106/files#diff-8cc7a9a38afb742eaab4b86297cd731eadbdb99348d466b42f6783007c81f6dd">db/migrate/20240822121603_backfill_deactivates_at_in_user_blocks.rb</a>
    (12)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5106/files#diff-1dd5a8f580b9615769ddc19a64a98f455d9d20eb149c443f41d9d3c797d39b12">db/structure.sql</a>
    (1)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/5106.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/5106.patch</a></li>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/5106.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/5106.diff</a></li>
</ul>

<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/pull/5106">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLNSUTGHPHWJD72OP5TZSXNKRAVCNFSM6AAAAABM6CXMC6VHI2DSMVQWIX3LMV43ASLTON2WKOZSGQ4DANZRGY2DKMY">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLMSD4SL63NU7PK4VJDZSXNKRA5CNFSM6AAAAABM6CXMC6WGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHJHXF2UU.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/pull/5106</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/pull/5106",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/5106",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>