parent
caf9a0bb15
commit
19af75292b
@ -1,5 +1,5 @@
|
|||||||
class AddIndexToExerciseAnswers < ActiveRecord::Migration[5.2]
|
class AddIndexToExerciseAnswers < ActiveRecord::Migration[5.2]
|
||||||
def change
|
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
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in new issue