mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-11 07:15:55 +08:00
CloudIDEA文件标记已读未读
This commit is contained in:
5
app/models/mark_file.rb
Normal file
5
app/models/mark_file.rb
Normal file
@@ -0,0 +1,5 @@
|
||||
class MarkFile < ApplicationRecord
|
||||
belongs_to :pull_request
|
||||
|
||||
|
||||
end
|
||||
@@ -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)}
|
||||
|
||||
Reference in New Issue
Block a user