From cb171061e63e507451638b445df87971203b5bdc Mon Sep 17 00:00:00 2001 From: cxt Date: Fri, 15 Mar 2019 16:27:49 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- db/migrate/20190314080805_create_shixun_student_works.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/migrate/20190314080805_create_shixun_student_works.rb b/db/migrate/20190314080805_create_shixun_student_works.rb index 2fd9ae18..07a460ac 100644 --- a/db/migrate/20190314080805_create_shixun_student_works.rb +++ b/db/migrate/20190314080805_create_shixun_student_works.rb @@ -82,7 +82,7 @@ class CreateShixunStudentWorks < ActiveRecord::Migration end work.update_column("myshixun_id", myshixun.id) else - work.update_attributes(:myshixun_id => 0) + work.update_attributes(:myshixun_id => 0, :work_status => 0) end end end