Merge remote-tracking branch 'origin/develop' into standalone_develop

This commit is contained in:
“xxq250”
2022-07-28 16:46:27 +08:00
14 changed files with 119 additions and 47 deletions

5
app/models/mark_file.rb Normal file
View File

@@ -0,0 +1,5 @@
class MarkFile < ApplicationRecord
belongs_to :pull_request
end

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)}