I was trying to setup Postgres for rails on an Ubuntu machine. And on running
I ran into the following error:
The database.yml file before:
Where it will use template0 from the database.yml and will ask me to change the default encoding to something else.
The solution turned out to be changing the default Postgres
template1 to use
utf8 encoding by default. By following the following gist:
And changing database.yml to use template1 instead.
The database.yml file after:
I hope this helps someone who runs into the same issue as I did.
So it Begins »