How to use SQL_ASCII encoding in a rails application?
-
04-07-2019 - |
Question
I have to connect to a legacy postgre database wich has ENCODING = 'SQL_ASCII';. How do I set this encoding in my rails app?
Solution
You can set this in your database.yml:
development:
adapter: postgresql
encoding: sql_ascii
database: appname_development
username: root
password:
host: localhost
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow