1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-02-20 14:54:15 +01:00

(bug) abus notification error

This commit is contained in:
Du Peng 2023-04-17 11:29:36 +02:00
parent 36d7c02776
commit b4250b2ce6
2 changed files with 4 additions and 0 deletions

View File

@ -1,5 +1,7 @@
# Changelog Fab-manager
- Fix a bug: notification is broken when delete a project
## v6.0.3 2023 April 12
- Fix a bug: unable to install Fab-manager by setup.sh

View File

@ -40,6 +40,8 @@ class Project < ApplicationRecord
has_many :project_steps, dependent: :destroy
accepts_nested_attributes_for :project_steps, allow_destroy: true
has_many :abuses, as: :signaled, dependent: :destroy, class_name: 'Abuse'
# validations
validates :author, :name, presence: true