2016-04-29 15:46:26 +08:00
|
|
|
|
class ApplyHomework < ActiveRecord::Base
|
2016-04-29 17:55:57 +08:00
|
|
|
|
#status:1. 待审核 2.审核通过 3.已拒绝
|
2016-04-29 15:46:26 +08:00
|
|
|
|
belongs_to :user
|
|
|
|
|
belongs_to :homework_common
|
|
|
|
|
attr_accessible :status, :user_id, :homework_common_id
|
|
|
|
|
end
|