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