From 9741a0250304c731cbe553c07890eb5c6d98cb6b Mon Sep 17 00:00:00 2001 From: cxt <853663049@qq.com> Date: Sat, 20 Jul 2019 00:17:46 +0800 Subject: [PATCH 1/4] =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../20190426010412_add_is_invalid_to_student_works_scores.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/migrate/20190426010412_add_is_invalid_to_student_works_scores.rb b/db/migrate/20190426010412_add_is_invalid_to_student_works_scores.rb index 2d782f924..7b893db6d 100644 --- a/db/migrate/20190426010412_add_is_invalid_to_student_works_scores.rb +++ b/db/migrate/20190426010412_add_is_invalid_to_student_works_scores.rb @@ -1,6 +1,6 @@ class AddIsInvalidToStudentWorksScores < ActiveRecord::Migration[5.2] def change - add_column :student_works_scores, :is_invalid, :boolean, default: false + # add_column :student_works_scores, :is_invalid, :boolean, default: false StudentWorksScore.where("score is not null").order("id desc").find_each do |score| unless score.is_invalid From ebf2b5c94a66390bbb71646683891ae7ab75605d Mon Sep 17 00:00:00 2001 From: cxt <853663049@qq.com> Date: Sat, 20 Jul 2019 00:39:03 +0800 Subject: [PATCH 2/4] =?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/20190517092730_add_description_to_edu_settings.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/migrate/20190517092730_add_description_to_edu_settings.rb b/db/migrate/20190517092730_add_description_to_edu_settings.rb index ad273b805..65fb52e35 100644 --- a/db/migrate/20190517092730_add_description_to_edu_settings.rb +++ b/db/migrate/20190517092730_add_description_to_edu_settings.rb @@ -1,6 +1,6 @@ class AddDescriptionToEduSettings < ActiveRecord::Migration[5.2] def change - add_column :edu_settings, :description, :string + # add_column :edu_settings, :description, :string add_index :edu_settings, :name, unique: :true ['tomcat_webssh', 'webssh_username', 'webssh_password', 'git_address_ip', 'git_address_domain', 'git_username', From 8dbc4c65ce0b1525bd608e835fe2bbdecae5b20c Mon Sep 17 00:00:00 2001 From: cxt <853663049@qq.com> Date: Sat, 20 Jul 2019 00:39:38 +0800 Subject: [PATCH 3/4] =?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/20190517092730_add_description_to_edu_settings.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/migrate/20190517092730_add_description_to_edu_settings.rb b/db/migrate/20190517092730_add_description_to_edu_settings.rb index 65fb52e35..c8f54ca31 100644 --- a/db/migrate/20190517092730_add_description_to_edu_settings.rb +++ b/db/migrate/20190517092730_add_description_to_edu_settings.rb @@ -1,7 +1,7 @@ class AddDescriptionToEduSettings < ActiveRecord::Migration[5.2] def change # add_column :edu_settings, :description, :string - add_index :edu_settings, :name, unique: :true + # add_index :edu_settings, :name, unique: :true ['tomcat_webssh', 'webssh_username', 'webssh_password', 'git_address_ip', 'git_address_domain', 'git_username', 'git_password', 'public_key', 'private_key', 'public_bucket', 'public_bucket_host', 'public_cdn_host', 'cloud_bridge', From 70447eaa26de19e4002bbe2a502080a0c3cb40c3 Mon Sep 17 00:00:00 2001 From: cxt <853663049@qq.com> Date: Sat, 20 Jul 2019 00:41:04 +0800 Subject: [PATCH 4/4] =?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/20190613022158_add_exec_time_to_challenge.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/migrate/20190613022158_add_exec_time_to_challenge.rb b/db/migrate/20190613022158_add_exec_time_to_challenge.rb index c1743674c..8998b3d82 100644 --- a/db/migrate/20190613022158_add_exec_time_to_challenge.rb +++ b/db/migrate/20190613022158_add_exec_time_to_challenge.rb @@ -1,6 +1,6 @@ class AddExecTimeToChallenge < ActiveRecord::Migration[5.2] def change - add_column :challenges, :exec_time, :integer + # add_column :challenges, :exec_time, :integer Shixun.find_each do |shixun| shixun.challenges.update_all(exec_time: shixun.exec_time)