You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
9 lines
353 B
9 lines
353 B
5 years ago
|
class PullRequest < ApplicationRecord
|
||
|
#status 0 默认未合并, 1表示合并, 2表示请求拒绝
|
||
|
belongs_to :issue
|
||
|
belongs_to :user
|
||
|
belongs_to :project
|
||
|
has_many :pull_request_assigns, foreign_key: :pull_request_id
|
||
|
has_many :pull_request_tags, foreign_key: :pull_request_id
|
||
|
has_many :project_trends, as: :trend, dependent: :destroy
|
||
|
end
|