Skip to content

Commit

Permalink
Change field type to integer as the User id is integer and doing a ca…
Browse files Browse the repository at this point in the history
…sting is adding unnecessary complexity
  • Loading branch information
syed-ali-tw committed Mar 4, 2025
1 parent 25f3c32 commit a4267a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/models/action.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a4267a0

Please sign in to comment.