<p dir="auto">There's no need for us to have it when rails does this for us.</p>
<p dir="auto">This is what I was trying to do when I found that <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1148246367" data-permission-text="Title is private" data-url="https://github.com/openstreetmap/openstreetmap-website/issues/3470" data-hovercard-type="pull_request" data-hovercard-url="/openstreetmap/openstreetmap-website/pull/3470/hovercard" href="https://github.com/openstreetmap/openstreetmap-website/pull/3470">#3470</a> needed doing first.</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/3482'>https://github.com/openstreetmap/openstreetmap-website/pull/3482</a></p>

<h4>Commit Summary</h4>
<ul>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/3482/commits/8938ab79975d4152a4d6d3c8ceafdbda30b6b367" class="commit-link">8938ab7</a>  Remove redundant presence validation on belongs_to</li>
</ul>

<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/openstreetmap-website/pull/3482/files">22 files</a>)</p>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/3482/files#diff-29beaabe278fd17493296745cecb67919f0906b47b8246ab770f5517615d9ef7">.rubocop_todo.yml</a>
    (5)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/3482/files#diff-33e24e983f7ae5829e0e919c3843ccaaa05be35610607ec2fd486636d2c14e56">app/models/changeset.rb</a>
    (2)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/3482/files#diff-728b66d9a5cff7625a609dad624d6dc712557207a1790eddf1692ef92b1fd01c">app/models/changeset_comment.rb</a>
    (4)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/3482/files#diff-792e2e3a9e481fd95c3722f4ab0199d469f25cfd433e6e0b6f4db70b8b197bb8">app/models/changeset_tag.rb</a>
    (2)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/3482/files#diff-e9f372b1c26b3708b6fb020be3309e62e2c88595095781ad6cd4271bf7836113">app/models/issue_comment.rb</a>
    (2)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/3482/files#diff-684a16c1b0b4c099fcdfeed95b1820e11fef629fe332ec7ce6a8c600331dd06d">app/models/message.rb</a>
    (2)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/3482/files#diff-d521fcf96c3de2b8c810e0e8da2c12824cd1de1a7999f8b600284e8f358703c1">app/models/node.rb</a>
    (2)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/3482/files#diff-2845087add773fb20ddff83e51ab1ef70788ad7e522c7363e03458c6adab93b3">app/models/node_tag.rb</a>
    (2)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/3482/files#diff-0858cfa3782c0bba33f9908f6588bfebc08fd0af5a423b77bb5f4d35969f91b6">app/models/note_comment.rb</a>
    (2)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/3482/files#diff-4c50108aa94328d5d91f43621940bf6ddc6e71541957230e73bd67984a149f02">app/models/old_node.rb</a>
    (2)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/3482/files#diff-0295f705dddcfcf5e8e96cf7dbb31b37b4f6f7c23dfa995d69b594ff1e718cba">app/models/old_node_tag.rb</a>
    (2)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/3482/files#diff-5db6f2fd2ae37c6c561b35eb05d1b8cc8269f2be66904f04456350839ce76a4a">app/models/old_relation.rb</a>
    (2)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/3482/files#diff-68f5e5a44fc59dac556dd16880bba8083f2a01315c17f8bc0d7c442b3fe6d7ee">app/models/old_relation_tag.rb</a>
    (2)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/3482/files#diff-f5c22ac10c6752867ac4b5758139cac9801401c0d514fa597cfbaa08e099b0c3">app/models/old_way.rb</a>
    (2)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/3482/files#diff-dbfb1ec6b34c7e08ecc5402dda7ee5de8b977731153a87658c373c345d400329">app/models/old_way_tag.rb</a>
    (2)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/3482/files#diff-bd34d574a6519bf199e087e2c1cb091c789c2a9e76b22ab8b454ddfc43e1fdd0">app/models/relation.rb</a>
    (2)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/3482/files#diff-6944ace960ceb79f466e0feec2ba54b2dc02c3a9238e3cacb8e31471f2431636">app/models/relation_tag.rb</a>
    (2)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/3482/files#diff-d276df626ef0e97e1f84661e93ed03fec2c8d90297f99c2dc2a85eb5a2337b6a">app/models/report.rb</a>
    (2)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/3482/files#diff-49ff8e13eb2bff9ffd834dad7421f568b40186cb58b28e7eac6b3e9168ec8759">app/models/trace.rb</a>
    (2)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/3482/files#diff-c36f041a59833f85660511c3f91bab34e164096d161cba7083804c4d1a5926b9">app/models/user_preference.rb</a>
    (2)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/3482/files#diff-bedc4e8b2c0975fdcb8401541fbed87e09c8cc55e265cf7802fba772e6b5aaf7">app/models/way.rb</a>
    (2)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/3482/files#diff-56c772c3e9db1997c791b12f5a9b247bc43164d0b608cf560d749cfe02867fde">app/models/way_tag.rb</a>
    (2)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/3482.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/3482.patch</a></li>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/3482.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/3482.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/3482">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLILCZ6CH5JAF63NOJTU5XUS3ANCNFSM5PTS6AIQ">unsubscribe</a>.<br />Triage notifications on the go with GitHub Mobile for <a href="https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675">iOS</a> or <a href="https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub">Android</a>.
<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLID5NPZULVTFBP7O7LU5XUS3A5CNFSM5PTS6AI2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4RG2CMLA.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/3482</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/3482",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/3482",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>