FIX: Match column types (#593)

The assignments table's primary key is a bigint.
This commit is contained in:
Bianca Nenciu 2024-10-09 16:53:38 +03:00 committed by GitHub
parent cfd35db208
commit 4f8816d696
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@ module DiscourseAssign
scope :assigned, -> { where(notification_type: Notification.types[:assigned]) }
scope :for_assignment,
->(assignment) do
assigned.where("((data::jsonb)->'assignment_id')::int IN (?)", assignment)
assigned.where("((data::jsonb)->'assignment_id')::bigint IN (?)", assignment)
end
end
end