This commit is contained in:
呱呱呱
2023-10-12 11:12:53 +08:00
parent 6cb7af0401
commit 19d36af37f
3 changed files with 8 additions and 3 deletions

View File

@@ -51,7 +51,7 @@
class Issue < ApplicationRecord
#issue_type 1为普通2为悬赏
belongs_to :project, counter_cache: true, touch: true
belongs_to :project, counter_cache: true, touch: true, optional: true
belongs_to :tracker,optional: true
has_many :project_trends, as: :trend, dependent: :destroy
has_one :pull_request