mirror of
https://github.com/TheRealOwenRees/chess-endgame-trainer.git
synced 2026-11-18 11:42:07 +00:00
Rate users and endgames with Glicko (#40)
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user