ADD issue、pull、milestone钩子,自动触发项目的更新时间

This commit is contained in:
jasder
2021-05-26 17:37:13 +08:00
parent e716dba249
commit 77076c60a6
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -24,7 +24,7 @@
#
class Version < ApplicationRecord
belongs_to :project, counter_cache: true
belongs_to :project, counter_cache: true, touch: true
has_many :issues, class_name: "Issue", foreign_key: "fixed_version_id"
belongs_to :user, optional: true