add player rating to the db

This commit is contained in:
2026-10-25 17:10:40 +03:00
parent acdaebd491
commit 765a3365bd
9 changed files with 180 additions and 147 deletions
@@ -0,0 +1,7 @@
class AddRatingToUsers < ActiveRecord::Migration[8.1]
def change
# Neutral initial rating. The value lives in the DB; in the future it
# will be recalculated based on player performance.
add_column :users, :rating, :integer, null: false, default: 100
end
end