|
|
@ -18,6 +18,13 @@ class AboutHomework < ActiveRecord::Migration
|
|
|
|
homework.updated_at = bid.updated_on
|
|
|
|
homework.updated_at = bid.updated_on
|
|
|
|
homework.save
|
|
|
|
homework.save
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#个人动态
|
|
|
|
|
|
|
|
bid.acts.each do |act|
|
|
|
|
|
|
|
|
act.act_type = homework.class.to_s
|
|
|
|
|
|
|
|
act.act_id = homework.id
|
|
|
|
|
|
|
|
act.save
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
#作业附件
|
|
|
|
#作业附件
|
|
|
|
bid.attachments.each do |attach|
|
|
|
|
bid.attachments.each do |attach|
|
|
|
|
attach.container = homework
|
|
|
|
attach.container = homework
|
|
|
|