Domanda

Devo collegarmi a un database postgre legacy che ha ENCODING = 'SQL_ASCII'; . Come posso impostare questa codifica nella mia app rails?

È stato utile?

Soluzione

Puoi impostarlo nel tuo database.yml:

development:
  adapter: postgresql
  encoding: sql_ascii
  database: appname_development
  username: root
  password:
  host: localhost
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top