PG::Error: ERROR: new encoding (UTF8) is incompatible

后端 未结 6 1297
迷失自我
迷失自我 2021-01-29 19:16

I have installed postgresql-9.2.4 from the source, now in rails app when I execute:

rake db:create command I get:

$ bin/rake db         


        
6条回答
  •  谎友^
    谎友^ (楼主)
    2021-01-29 19:20

    As for me, I just change the line from database.yml:

    encoding: unicode

    to:

    encoding: SQL_ASCII

    just that and it all works.

提交回复
热议问题