Postgres: Polymorphic association for Issue
Created by: moskvin
I am using postgres for gitlab. After upgrade version I get an error if you click on the Issue:
ActionView::Template::Error (PG::Error: ERROR: operator does not exist: character varying = integer
LINE 1: ...OUNT(*) FROM "notes" WHERE "notes"."noteable_id" = 61 AND "...
^
HINT: No operator matches the given name and argument type(s). You might need to add explicit type casts.
: SELECT COUNT(*) FROM "notes" WHERE "notes"."noteable_id" = 61 AND "notes"."noteable_type" = 'Issue'):
7: %i.icon-tag
8: = label.name
9: - if issue.notes.any?
10: %span.btn.small.disabled.grouped
11: %i.icon-comment
12: = issue.notes.count
13: - if can? current_user, :modify_issue, issue
app/views/issues/_show.html.haml:10:in `_app_views_issues__show_html_haml__2173434730988287540_64734340'
app/views/dashboard/issues.html.haml:15:in `block (2 levels) in _app_views_dashboard_issues_html_haml___1709162256339851849_50365360'
app/views/dashboard/issues.html.haml:14:in `each'
app/views/dashboard/issues.html.haml:14:in `block in _app_views_dashboard_issues_html_haml___1709162256339851849_50365360'
app/views/dashboard/issues.html.haml:9:in `each'
app/views/dashboard/issues.html.haml:9:in `_app_views_dashboard_issues_html_haml___1709162256339851849_50365360'
app/controllers/dashboard_controller.rb:31:in `issues'