Source code for my blog post: http://lorefnon.me/rails/2014/07/27/optimizing-sti-columns.html