因此,在我的開發Mac上使用我的rails應用程序運行postgres數據庫實例,但由於我從頭構建模型(即添加,刪除,改變列),所以我決定開始乾淨。運行rake db:drop後,我無法通過rake db:create來重新創建。我只是得到以下內容:無法在rails應用程序中重新創建postgres數據庫
無法爲{「adapter」=>「postgresql」,「encoding」=>「unicode」,「database」=>「xyz_development」,「pool」=> 5創建數據庫,「用戶名」=>「xyz」,「密碼」=>無}
我想我需要在postgres中創建用戶,但不應該從初始設置中出現嗎?
謝謝。
你應該告訴我們,在背景中拋出的真正的SQL錯誤。 – 2012-04-15 07:35:53