ActiveRecord connection fix from rubycas-server's github

https://github.com/rubycas/rubycas-server/issues/102#issuecomment-7137043