Ricardo Acras
Ricardo Acras

Reputation: 36244

How to use SQL_ASCII encoding in a rails application?

I have to connect to a legacy postgres database which has ENCODING = 'SQL_ASCII';.

How do I set this encoding in my rails app?

Upvotes: 1

Views: 942

Answers (1)

Mike Breen
Mike Breen

Reputation: 2610

You can set this in your database.yml:

development:
  adapter: postgresql
  encoding: sql_ascii
  database: appname_development
  username: root
  password:
  host: localhost

Upvotes: 3

Related Questions