Rate users and endgames with Glicko (#40)

This commit is contained in:
2026-11-03 22:04:51 +01:00
parent a3fb878383
commit 4a36ffd2e6
12 changed files with 228 additions and 16 deletions
@@ -0,0 +1,15 @@
defmodule Chesstrainer.Repo.Migrations.AddRatingsToUsersAndEndgames do
use Ecto.Migration
def change do
alter table(:endgames) do
modify :rating, :float, default: 1500.0
modify :rating_deviation, :float, default: 350.0
end
alter table(:users) do
add :rating, :float, null: false, default: 1500.0
add :rating_deviation, :float, null: false, default: 350.0
end
end
end