前提
Ruby初心者です。
cloudd9で作成したアプリをHerokuでデプロイしよと思っています。
heroku run rake db:migrateをするとエラー発生
発生している問題・エラーメッセージ
rake aborted!
PG::Error: invalid encoding name: utf8mb4
/app/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.6/lib/active_record/connection_adapters/postgresql_adapter.rb:706:in set_client_encoding' /app/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.6/lib/active_record/connection_adapters/postgresql_adapter.rb:706:in
configure_connection'
/app/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.6/lib/active_record/connection_adapters/postgresql_adapter.rb:693:in connect' /app/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.6/lib/active_record/connection_adapters/postgresql_adapter.rb:223:in
initialize'
/app/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.6/lib/active_record/connection_adapters/postgresql_adapter.rb:48:in new' /app/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.6/lib/active_ --省略-- /app/bin/bundle:3:in
load'
/app/bin/bundle:3:in `<main>'
Tasks: TOP => db:migrate
(See full trace by running task with --trace)
エラーの修正方法を教えてください。
追加補足は必要であればいたします。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2022/09/27 10:54 編集