Comment utiliser le codage SQL_ASCII dans une application rails?
-
04-07-2019 - |
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?
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