From 92f032e7378539c40929d0cf8a119b97c9d5a729 Mon Sep 17 00:00:00 2001 From: cxt <853663049@qq.com> Date: Wed, 15 May 2019 14:05:32 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=81=E7=A7=BB=E6=96=87=E4=BB=B6=E8=B0=83?= =?UTF-8?q?=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- db/migrate/20190515070751_migrate_exercise_user_questions.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/migrate/20190515070751_migrate_exercise_user_questions.rb b/db/migrate/20190515070751_migrate_exercise_user_questions.rb index 75f3c29b..c1683712 100644 --- a/db/migrate/20190515070751_migrate_exercise_user_questions.rb +++ b/db/migrate/20190515070751_migrate_exercise_user_questions.rb @@ -1,6 +1,6 @@ class MigrateExerciseUserQuestions < ActiveRecord::Migration def up - exercises = Exercise.where("id > 900") + exercises = Exercise.where("id > 1000") exercises.each do |exercise| if exercise.exercise_level_settings.where("num != exercise_questions_count").size > 0