I'm trying to migrate from Sqlite to Postgres with gem 'yaml_db'
. On my locale development everything goes fine. But when I tried to do the same on production server I see the error:
PG::InvalidParameterValue: ERROR: new encoding (UTF8) is incompatible with the encoding of the template database (SQL_ASCII)
What should I do to keep my data and move it from one DB to another?
database.yml
on the locale computer
default: &default
adapter: sqlite3
pool: 5
timeout: 5000
development:
<<: *default
database: db/development.sqlite3
on the server
production:
adapter: sqlite3
database: db/production.sqlite3
But the file has UTF-8 encoding:
$ file -i data.yml
data.yml: text/plain; charset=utf-8