Add index for `user_bans.user_id`

This commit is contained in:
Karina Kwiatek 2023-12-09 22:27:20 +01:00
parent 11535a17a3
commit 68ffa36f7a
1 changed files with 7 additions and 0 deletions

View File

@ -0,0 +1,7 @@
# frozen_string_literal: true
class AddIndexOnUserBansUserId < ActiveRecord::Migration[7.0]
def change
add_index :user_bans, :user_id
end
end