From b9dee02656430dbede0c83f49f70a4447ef54cb7 Mon Sep 17 00:00:00 2001 From: Karina Kwiatek Date: Fri, 15 Apr 2022 21:40:50 +0200 Subject: [PATCH] Add index for `question_id` on `inboxes` --- ...20415193829_add_index_for_question_id_index_on_inboxes.rb | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 db/migrate/20220415193829_add_index_for_question_id_index_on_inboxes.rb diff --git a/db/migrate/20220415193829_add_index_for_question_id_index_on_inboxes.rb b/db/migrate/20220415193829_add_index_for_question_id_index_on_inboxes.rb new file mode 100644 index 00000000..63ef74c7 --- /dev/null +++ b/db/migrate/20220415193829_add_index_for_question_id_index_on_inboxes.rb @@ -0,0 +1,5 @@ +class AddIndexForQuestionIdIndexOnInboxes < ActiveRecord::Migration[6.1] + def change + add_index :inboxes, :question_id + end +end