title: Ruby on Rails Single Table Inheritance (STI) and unit test problem (with PostgreSQL)
body: <p>I'm using an STI model with a single "Accounts" table to hold information for Users and Technicians (i.e. User &lt; Account, Technician &lt; Account).  Everything works from a functional perspective, but things explode when running unit tests:</p>
  
  <p>...
  8) Error:
  test_the_truth(UserTest):
  ActiveRecord::StatementInvalid: PGError: ERROR:  relation "technicians" does not exist
  : DELETE FROM "technicians"
  ...</p>
  
  <p>Essentially, the standard framework doesn't recognize that the Technicians and Users tables (or "relations" as PostgreSQL calls them) don't exist and, in fact, should be aliased to Accounts.</p>
  
  <p>Any ideas?  I'm relatively new to RoR and I'm at a loss as how to fix this without ripping out STI all together.</p>