迁移文件调整

dev_course
cxt 6 years ago
parent 3215cc4a0f
commit 3dbc481437

@ -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

Loading…
Cancel
Save