Merge pull request #8750 from okriuchykhin/ok_SCI_12187_v3

Fix automatic creation of user group assignments for new objects [SCI-12187]
This commit is contained in:
Alex Kriuchykhin 2025-08-06 15:43:36 +02:00 committed by GitHub
commit 138045f060
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -7,7 +7,7 @@ class UserGroupAssignment < ApplicationRecord
belongs_to :team
belongs_to :user_group
belongs_to :user_role
belongs_to :assigned_by, class_name: 'User'
belongs_to :assigned_by, class_name: 'User', optional: true
enum :assigned, { automatically: 0, manually: 1 }, suffix: true