title: Testing models with multiple database connections in Rails using ActiveRecord
body: <p>What is the best way to test a model that is using a different database connection in Rails.  For example I have a model FooBar that is read only:</p>
  
  <pre><code>class FooBar &lt; ActiveRecord::Base
    establish_connection configurations['foo_bars']
    # ...
  end
  </code></pre>
  
  <p>Are there any good conventions, hacks, or plugins out there? </p>