Skip to content

fix: allow multiple participants for one shift#440

Merged
merichar merged 6 commits intosc0v:masterfrom
natsuki615:master
Apr 4, 2026
Merged

fix: allow multiple participants for one shift#440
merichar merged 6 commits intosc0v:masterfrom
natsuki615:master

Conversation

@natsuki615
Copy link
Copy Markdown
Contributor

  • fix: migrate to add capacity and andrewids(multiple) to shifts
  • fix: add unique index to prevent the same participant + shift combo from clocking in multiple times
  • feat: when andrewids field is empty, clock in manually


class ShiftParticipant < ApplicationRecord
validates_associated :shift, :participant
validates :participant_id, uniqueness: { scope: :shift_id }
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@merichar merichar merged commit 4f20d8c into sc0v:master Apr 4, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants