How to use multiple databases for one rails 3.1 app in Heroku?
问题 My Rails 3.1 application connects to 2 databases, one is the default, the other is an Amazon RDS MYSQL instance. The current database.yml contains two production database connections. The models that need to pull from the second database simply use establish_connection "production_on_amazon" Unfortunately Heroku overwrites your database.yml, and only seems to inlcude one database connection. Does anyone know how I can add or configure my second? Running "heroku config" I can see there are 2