2016-08-10 16:27:41 +08:00
|
|
|
|
class PullRequest < ActiveRecord::Base
|
2016-11-29 12:25:15 +08:00
|
|
|
|
# status 1:创建 2:接受 3:重新打开 4:关闭
|
2016-12-01 11:31:48 +08:00
|
|
|
|
attr_accessible :gpid, :pull_request_id, :user_id, :project_id, :title
|
2016-08-10 16:27:41 +08:00
|
|
|
|
validates_uniqueness_of :pull_request_id
|
2016-11-29 12:25:15 +08:00
|
|
|
|
|
|
|
|
|
has_many :forge_messages, :class_name => 'ForgeMessage', :as => :forge_message, :dependent => :destroy
|
2016-08-10 16:27:41 +08:00
|
|
|
|
end
|