forked from Trustie/forgeplus
更改 trend project可以为空
This commit is contained in:
parent
8e024bd564
commit
e582ae95e4
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue