DbCharmer is a Rails plugin (and gem) that could be used to manage AR model connections, implement master/slave query schemes, sharding and other magic features many high-scale applications need.
Oleksiy Kovyrin
gem "db-charmer", "~> 1.8.4"