title: Rails: How to use BIGINT as Primary Key
body: <p>I've read through a lot of articles discussing how to use <code>BIGINT</code> as primary keys in Rails, but it seems like all of them are outdated.</p>
  
  <p>How can I use BIGINT's for my primary keys, preferrably by just setting this globally. (i am aware of the differences in performance)</p>
  
  <p>Things I've tried:</p>
  
  <ul>
  <li><a href="http://www.mccartie.com/2016/12/05/rails-5.1.html" rel="noreferrer">http://www.mccartie.com/2016/12/05/rails-5.1.html</a></li>
  <li><a href="https://moeffju.net/blog/bigints-in-rails-as-primary-keys" rel="noreferrer">https://moeffju.net/blog/bigints-in-rails-as-primary-keys</a></li>
  <li>and a lot more I cannot remember</li>
  </ul>