I would like to use icu collation in PostgreSQL with rails application. I specified icu collation at database.yml like this,
adapter: postgresql
ctype: ja-x-icu
collation: ja-x-icu
but I got the following error:
Caused by:
PG::WrongObjectType: ERROR: invalid locale name: "ja-x-icu"
I found some questions which said that we cannot use icu collation in "CREATE DATABASE".
Get und-x-icu as collation and character type in Postgres 10 and win server 2008
Is this situation still the same as this question now?
If so, how can I create database with icu collation?
Thank you in advance. (I'm using Rails 7 and Postgres 11 but I can move to further version if necessary.)