Set template option in your database.yml for PostgreSQL
Specifically, use template0
as your default. That way Rails can smoothly force utf-8 encoding on db without complaining weirdly.
development: &defaults
# (...)
encoding: utf8
template: template0
test:
<<: *defaults
# (...)
production:
<<: *defaults
# (...)
Written by Adam Stankiewicz
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Rails
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#