From 68ffa36f7a49ce546bc0fca7e300a5bd341b68b8 Mon Sep 17 00:00:00 2001 From: Karina Kwiatek Date: Sat, 9 Dec 2023 22:27:20 +0100 Subject: [PATCH] Add index for `user_bans.user_id` --- .../20231209212629_add_index_on_user_bans_user_id.rb | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 db/migrate/20231209212629_add_index_on_user_bans_user_id.rb diff --git a/db/migrate/20231209212629_add_index_on_user_bans_user_id.rb b/db/migrate/20231209212629_add_index_on_user_bans_user_id.rb new file mode 100644 index 00000000..cb6101d9 --- /dev/null +++ b/db/migrate/20231209212629_add_index_on_user_bans_user_id.rb @@ -0,0 +1,7 @@ +# frozen_string_literal: true + +class AddIndexOnUserBansUserId < ActiveRecord::Migration[7.0] + def change + add_index :user_bans, :user_id + end +end