title: How to structure model that is broken into database as 36 tables?
body: <p>I have over 1 billion domain name records which, instead of putting them all in a single table, I decided to break them up into 36 tables (same db structure for each table).</p>
  
  <p>There is a table based on the first character of the domain name (ex tables: <code>domains_a</code>... <code>domains_z</code>).</p>
  
  <p>How can I create a single <code>Domain</code> model in rails that automatically switches between these tables seamlessly based on the character specified?</p>