feat: add soft deletes to WorkspaceInvitation model #68

Open
Charon wants to merge 2 commits from feat/invitation-soft-deletes into dev
Member

Summary

  • Add SoftDeletes trait to WorkspaceInvitation model
  • Create migration adding deleted_at column to workspace_invitations table

Cancelled invitations are now soft-deleted instead of hard-deleted, preserving the audit trail.

Fixes #22

## Summary - Add `SoftDeletes` trait to `WorkspaceInvitation` model - Create migration adding `deleted_at` column to `workspace_invitations` table Cancelled invitations are now soft-deleted instead of hard-deleted, preserving the audit trail. Fixes #22
Charon added 2 commits 2026-03-24 13:37:38 +00:00
Invitations were hard-deleted when cancelled, removing the audit trail.
Add SoftDeletes trait and migration for deleted_at column so cancelled
invitations are retained for auditing purposes.

Fixes #22

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Add the SoftDeletes import and trait usage so delete() calls perform
soft deletes, preserving cancelled invitations for audit trail.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin feat/invitation-soft-deletes:feat/invitation-soft-deletes
git checkout feat/invitation-soft-deletes

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git checkout dev
git merge --no-ff feat/invitation-soft-deletes
git checkout feat/invitation-soft-deletes
git rebase dev
git checkout dev
git merge --ff-only feat/invitation-soft-deletes
git checkout feat/invitation-soft-deletes
git rebase dev
git checkout dev
git merge --no-ff feat/invitation-soft-deletes
git checkout dev
git merge --squash feat/invitation-soft-deletes
git checkout dev
git merge --ff-only feat/invitation-soft-deletes
git checkout dev
git merge feat/invitation-soft-deletes
git push origin dev
Sign in to join this conversation.
No description provided.