CloudIDEA文件标记已读未读

This commit is contained in:
“xxq250”
2022-07-28 16:42:21 +08:00
parent 79a6841bbc
commit 4ccf8ea5ff
6 changed files with 64 additions and 1 deletions

View File

@@ -43,6 +43,7 @@ class PullRequest < ApplicationRecord
has_many :reviews, dependent: :destroy
has_many :pull_requests_reviewers, dependent: :destroy
has_many :reviewers, through: :pull_requests_reviewers
has_many :mark_files, dependent: :destroy
scope :merged_and_closed, ->{where.not(status: 0)}
scope :opening, -> {where(status: 0)}