Railsでアプリを作成し、herokuへデプロイを行いました。
そこは問題なかったのですが、投稿一覧ページを閲覧しようとしたところでエラーが発生してしまいました。
heroku logsでのエラー部分(抜粋)
Started GET "/microposts" Processing by MicropostsController#index as HTML Rendering microposts/index.html.slim within layouts/application (3.3ms) SELECT COUNT(DISTINCT "microposts"."id") FROM "microposts" Rendered microposts/index.html.slim within layouts/application (11.4ms) Completed 500 Internal Server Error in 20ms (ActiveRecord: 3.3ms) ActionView::Template::Error (PG::UndefinedFunction: ERROR: could not identify an equality operator for type json
開発環境ではsqlite3、本番はpostgresqlです。
一覧を取得するのが原因なのかと思い、ユーザー検索のページもあるので、そちらを確認すると、そちらは問題なくデータの取得ができておりました。
どこの部分を確認したらいいのかわかりません。
ご存知の方がおられましたら、よろしくお願い致します。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。