Skip to content

Conversation

@create-issue-branch
Copy link
Contributor

closes #645

@cla-bot cla-bot bot added the cla-signed label Jan 12, 2026
This commit adds the 'deleted' column on the SchoolClass record and DB
migration, as well as two scopes called `active` and `deleted` to
simplify retrieval of active and deleted classes respectively.
This commit changes the access rules in CanCanCan to prevent any user
(student, teacher or owner) from accessing deleted classes.
This means the #index operation only returns classes within the `active`
scope, excluding deleted classes.
Instead of calling `destroy!` on SchoolClass, we now call
`mark_as_deleted!` instead.
This commit adds broader tests for the behaviour of marked-as-deleted
classes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement back-end features for "Remove a Classroom"

2 participants