9 lines
446 B
Ruby
9 lines
446 B
Ruby
class ApplyAddDepartment < ActiveRecord::Base
|
||
belongs_to :school
|
||
belongs_to :user
|
||
attr_accessible :name, :remarks, :status, :school_id, :user_id, :department_id
|
||
has_many :applied_messages, :class_name =>'AppliedMessage', :as => :applied
|
||
belongs_to :department
|
||
# status: 0表示未批准; status:1表示已批准; status: 2表示已更改; status: 3表示已拒绝; status: 4表示已更改后废除的部门
|
||
end
|