<p></p>
<blockquote>
<blockquote>
<p dir="auto">So my proposal is to rename the tables to match the model names.</p>
</blockquote>
<p dir="auto">Have you also evaluated the other way around, i.e. change the model names to match the db table names? Assuming that's feasible, that's significantly less risk and effort for anything non-Rails (planetdump-ng, osmdbt, cgimap, changeset replication).</p>
</blockquote>
<p dir="auto">Honestly, changing the model names seems like a much better option than altering the database table names in this case, as it improves readability. For example, <code class="notranslate">current_nodes</code> (with the model name Node vs CurrentNode) contains only the latest <strong>(the current)</strong> versions of nodes, while <code class="notranslate">nodes</code> (with the model name OldNode vs Node) includes <strong>all</strong> versions of node definitions. I believe this falls under the category of <code class="notranslate">naming things</code> (like <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="2806628769" data-permission-text="Title is private" data-url="https://github.com/openstreetmap/openstreetmap-website/issues/5539" data-hovercard-type="issue" data-hovercard-url="/openstreetmap/openstreetmap-website/issues/5539/hovercard" href="https://github.com/openstreetmap/openstreetmap-website/issues/5539">#5539</a>) and is highly subjective, so opinions will vary.</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/5619#issuecomment-2638208318">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLNVHHUS5ERROSBVPND2OKIJDAVCNFSM6AAAAABWRVAF2WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMMZYGIYDQMZRHA">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLOPZ4PGMQHSTC5ENJT2OKIJDA5CNFSM6AAAAABWRVAF2WWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTU5H7OT4.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/5619/2638208318</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/5619#issuecomment-2638208318",
"url": "https://github.com/openstreetmap/openstreetmap-website/issues/5619#issuecomment-2638208318",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>