Files
MatchLiveTv/backend/db/migrate/20260527180000_add_team_profile_and_roster.rb
Emiliano Frascaro f4b7be0f80 Billing Stripe, link regia mobile e staff solo trasmissione.
Aggiunge fatturazione club, pagina regia condivisibile senza account, roster squadre e rimuove la modalità controller dall'app (v1.1.0).

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-29 07:23:13 +02:00

20 lines
572 B
Ruby

class AddTeamProfileAndRoster < ActiveRecord::Migration[7.2]
def change
add_column :teams, :description, :text
create_table :team_roster_members, id: :uuid do |t|
t.references :team, null: false, foreign_key: true, type: :uuid
t.string :category, null: false, default: "player"
t.string :full_name, null: false
t.string :role_label
t.integer :jersey_number
t.text :bio
t.integer :position, null: false, default: 0
t.timestamps
end
add_index :team_roster_members, %i[team_id category position]
end
end