Displaying 1 result from an estimated 1 matches for "production_db".
Did you mean:
  production_
  
2009 May 21
1
DB connection problem in production
I have a separate DB for one model in my application and in development
mode the connection is working properly, in production however it isn''t.
production:
  adapter: mysql
  host: myhost
  username: root
  password:
  database: production_db
users_production:
  adapter: mysql
  host: myhost
  username: root
  password:
  database: other_db
The model that connects to the other database is called User but the
table it references in other_db is smf_users so my User.rb looks like
this:
class User < ActiveRecord::Base
  establish_conn...