迁移调整

dev_forge
cxt 5 years ago
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…
Cancel
Save