[フレーム]
Last Updated: February 25, 2016
·
3.362K
· sheerun

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
 # (...)

AltStyle によって変換されたページ (->オリジナル) /