<h3 dir="auto">Description</h3>
<p dir="auto">PR adds migration for validation foreign key in <code class="notranslate">notes</code> table referencing <code class="notranslate">users</code> table.</p>
<p dir="auto">This PR is 3rd from set of PRs described <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5485#pullrequestreview-2545467592" data-hovercard-type="pull_request" data-hovercard-url="/openstreetmap/openstreetmap-website/pull/5485/hovercard">here</a>.</p>
<h3 dir="auto">How has this been tested?</h3>
<p dir="auto">Automated unit tests and manual testing.</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/5510'>https://github.com/openstreetmap/openstreetmap-website/pull/5510</a></p>

<h4>Commit Summary</h4>
<ul>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5510/commits/297e8374f495d2487d42a4ad96a0f0d981ffd697" class="commit-link">297e837</a>  Adds validating of notes foreign key</li>
</ul>

<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5510/files">2 files</a>)</p>
<ul>
  <li>
    <strong>A</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5510/files#diff-c93618bcf92b6865021114d39c71051f924e7599a844810f3872a6399a0c7ffb">db/migrate/20250105154621_validate_foreign_key_on_notes.rb</a>
    (5)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5510/files#diff-1dd5a8f580b9615769ddc19a64a98f455d9d20eb149c443f41d9d3c797d39b12">db/structure.sql</a>
    (3)
  </li>
</ul>

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