Skip to content

Commit 2f62140

Browse files
committed
fix: solve minors roster mismatchs
1 parent 79f918a commit 2f62140

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

app/modules/players/controllers/players_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ def player_params
365365
# :role refers to in-game position (top/jungle/mid/adc/support), not user role
366366
# nosemgrep
367367
params.require(:player).permit(
368-
:summoner_name, :real_name, :role, :region, :status, :jersey_number,
368+
:summoner_name, :real_name, :professional_name, :role, :region, :status, :jersey_number,
369369
:birth_date, :country, :nationality,
370370
:contract_start_date, :contract_end_date,
371371
:solo_queue_tier, :solo_queue_rank, :solo_queue_lp,
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
class AddAliasToPlayers < ActiveRecord::Migration[7.2]
2+
def change
3+
# professional_name already exists — no-op
4+
end
5+
end

db/schema.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#
1111
# It's strongly recommended that you check this file into your version control system.
1212

13-
ActiveRecord::Schema[7.2].define(version: 2026_04_06_300001) do
13+
ActiveRecord::Schema[7.2].define(version: 2026_04_07_100001) do
1414
create_schema "auth"
1515
create_schema "extensions"
1616
create_schema "graphql"
@@ -569,6 +569,7 @@
569569
t.boolean "player_access_enabled", default: false, comment: "Enable/disable individual player access"
570570
t.string "access_token_jti", comment: "JWT token identifier for player session"
571571
t.string "discord_user_id"
572+
t.string "alias"
572573
t.index ["deleted_at"], name: "index_players_on_deleted_at", comment: "Index for soft delete queries"
573574
t.index ["discord_user_id"], name: "index_players_on_discord_user_id", unique: true, where: "(discord_user_id IS NOT NULL)"
574575
t.index ["organization_id", "contract_end_date"], name: "idx_players_org_contract_end"

0 commit comments

Comments
 (0)