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 diff --git a/db/migrate/20190517092730_add_description_to_edu_settings.rb b/db/migrate/20190517092730_add_description_to_edu_settings.rb index ad273b805..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_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', 'git_password', 'public_key', 'private_key', 'public_bucket', 'public_bucket_host', 'public_cdn_host', 'cloud_bridge', 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)