From 92e81a076e7cd1952cc9477ff853b605e574aee7 Mon Sep 17 00:00:00 2001 From: cxt <853663049@qq.com> Date: Tue, 7 May 2019 14:19:45 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=81=E7=A7=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...0507061901_migrate_exercise_quetsion_quetsion_score.rb | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 db/migrate/20190507061901_migrate_exercise_quetsion_quetsion_score.rb diff --git a/db/migrate/20190507061901_migrate_exercise_quetsion_quetsion_score.rb b/db/migrate/20190507061901_migrate_exercise_quetsion_quetsion_score.rb new file mode 100644 index 00000000..d170a8df --- /dev/null +++ b/db/migrate/20190507061901_migrate_exercise_quetsion_quetsion_score.rb @@ -0,0 +1,8 @@ +class MigrateExerciseQuetsionQuetsionScore < ActiveRecord::Migration + def up + change_column :exercise_questions, :question_score, :float, :default => 0 + end + + def down + end +end