Files
euchre_camp/app/repositories/matches.rb
T
david 1268889a78 Add Elo rating system with match entry and CSV upload
- Implement EloCalculator service for 2v2 Euchre matches
- Create background job processing with GoodJob
- Add single match entry form
- Add CSV upload for batch match entry
- Create player rankings view
- Add database schema for matches and elo snapshots
2026-03-26 16:28:24 -07:00

20 lines
333 B
Ruby

# frozen_string_literal: true
require 'rom-repository'
module EuchreCamp
module Repositories
class Matches < ::EuchreCamp::Repository[:matches]
commands :create, update: :by_pk, delete: :by_pk
def all
matches.to_a
end
def by_id(id)
matches.by_pk(id).one!
end
end
end
end