title: How do you use different databases with Rails, depending not on the model but on the session?
body: <p>I would like to Rails use database A or database B, both the exact same schema, depending on the the identity of the logged in user. </p>
  
  <p>So to be clear, my problem is not the same as the one solved here:</p>
  
  <p><a href="http://weare.buildingsky.net/2006/12/06/multiple-concurrent-database-connections-with-activerecord" rel="nofollow">http://weare.buildingsky.net/2006/12/06/multiple-concurrent-database-connections-with-activerecord</a></p>
  
  <p>I'd like to use the same exact models, but a different databases, depending on who is logged in. Is this easy to do?</p>