更改 trend project可以为空

This commit is contained in:
yystopf 2025-06-18 09:17:42 +08:00
parent 8e024bd564
commit e582ae95e4
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ class ProjectTrend < ApplicationRecord
CREATE = 'create'
MERGE = 'merge'
belongs_to :project
belongs_to :project, optional: true
belongs_to :trend, polymorphic: true, optional: true
belongs_to :user
end