rake db:create encoding error with postgresql

前端 未结 5 824
日久生厌
日久生厌 2021-01-30 02:41

I\'m importing an existing rails project that I was working on into my new arch linux system, I already installed all gems and postgresql correctly, but I having some issues whe

5条回答
  •  伪装坚强ぢ
    2021-01-30 03:09

    To fix this in Rails, I've found that you can simply add the following line to each section (development/production etc.) of your database.yml file:

    template: template0
    

    See ActiveRecord/ConnectionAdapters/PostgreSQL/SchemaStatements#create_database for other options.

提交回复
热议问题