Question

Je dois me connecter à une base de données postgre ancienne qui contient ENCODING = 'SQL_ASCII'; . Comment définir cet encodage dans mon application rails?

Était-ce utile?

La solution

Vous pouvez définir ceci dans votre database.yml:

development:
  adapter: postgresql
  encoding: sql_ascii
  database: appname_development
  username: root
  password:
  host: localhost
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top