The global comment template and project relation were set to dependent: :nullify, but since the schema does not allow null values, the deletion failed. Therefore, the relation was switched to use has_and_belongs_to_many, making it function like dependent: :destroy. During this process, it was necessary to change the name of the intermediate table, so a migration was created.
What happend: Deleting global comment templates results in an internal error
Reproduction steps:
Create a global comment template (also check for available projects)
Change the created comment template from enabled to disabled
Delete the comment template
Result: An internal error occurs
This PR also includes the changes made in PRs #66, #67, #69, and #70. (They have all been reviewed in their respective PRs.)
The global comment template and project relation were set to
dependent: :nullify
, but since the schema does not allow null values, the deletion failed. Therefore, the relation was switched to usehas_and_belongs_to_many
, making it function likedependent: :destroy
. During this process, it was necessary to change the name of the intermediate table, so a migration was created.What happend: Deleting global comment templates results in an internal error
Reproduction steps:
Result: An internal error occurs
This PR also includes the changes made in PRs #66, #67, #69, and #70. (They have all been reviewed in their respective PRs.)