From 19af75292bd60775260f2c40ca47cf6b47e10bcf Mon Sep 17 00:00:00 2001 From: cxt <853663049@qq.com> Date: Tue, 3 Dec 2019 20:29:41 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=81=E7=A7=BB=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- db/migrate/20191203122643_add_index_to_exercise_answers.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/migrate/20191203122643_add_index_to_exercise_answers.rb b/db/migrate/20191203122643_add_index_to_exercise_answers.rb index e05b0ee52..16647f2ac 100644 --- a/db/migrate/20191203122643_add_index_to_exercise_answers.rb +++ b/db/migrate/20191203122643_add_index_to_exercise_answers.rb @@ -1,5 +1,5 @@ class AddIndexToExerciseAnswers < ActiveRecord::Migration[5.2] def change - add_index :exercise_answers, column: [:exercise_question_id, :user_id] + add_index :exercise_answers, [:exercise_question_id, :user_id], name: "index_on_question_id_user_id" end end