Rails: No connection pool for ActiveRecord::Base

后端 未结 9 1090
梦毁少年i
梦毁少年i 2020-12-29 07:27

I\'m trying to use rails 4.2.6 to develop an app. I\'m trying to use postgres for database. Server starts fine but when I try loading a page it throws this \"No connection p

9条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-29 08:17

    I've encountered the same problem when I try to access the Model before creating the DataBase.

    Make sure you run rake db:migrate at least once.

    If you already run migration then check the Database as mentioned in previous answers.

提交回复
热议问题