Displaying 1 result from an estimated 1 matches for "smf_users".
Did you mean:
smb_users
2009 May 21
1
DB connection problem in production
...ction:
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_connection "users_#{RAILS_ENV}"
set_table_name "smf_users"
end
In production I''m getting this error:
Mysql::Error: Table ''production_db. smf_users'' doesn''t exis...