socialforge/app/models/pull_request.rb

8 lines
326 B
Ruby
Raw Normal View History

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