From 46c0248e623aec25a835ab564a2b03a495b055f9 Mon Sep 17 00:00:00 2001 From: syed-ali-tw Date: Tue, 4 Mar 2025 12:18:11 +0000 Subject: [PATCH] Change field type to integer as the User id is integer and doing a casting is adding unnecessary complexity --- app/models/action.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/action.rb b/app/models/action.rb index de53aba8e..185895a5d 100644 --- a/app/models/action.rb +++ b/app/models/action.rb @@ -51,8 +51,8 @@ class Action # Temp-to-be-removed # This will be removed once we move action table to postgres, this temporarily # allows to support the belongs to relation between action and user - field :recipient_id, type: BSON::ObjectId - field :requester_id, type: BSON::ObjectId + field :recipient_id, type: Integer + field :requester_id, type: Integer def container_class_name(edition) edition.container.class.name.underscore.humanize