I am having different databases for each signup and there is one common Global database for sign in authentication..
What i need is After Logged in, user should be switched to other database and that switched database should be used throughout application until user logged out.
Right now when i switch database after logged in, it does connection with default database(database.yml) on every controller request.