Improve completions
Some checks are pending
CI / scan_ruby (push) Waiting to run
CI / scan_js (push) Waiting to run
CI / lint (push) Waiting to run
CI / test (push) Waiting to run

This commit is contained in:
sto
2025-03-21 19:50:03 +01:00
parent 15e2493f87
commit 570e517c28
3 changed files with 11 additions and 3 deletions

View File

@@ -6,4 +6,6 @@ class Completion < ApplicationRecord
attr_accessor :display_time_from_start, :display_relative_time
validates :time_seconds, presence: true
validates_numericality_of :time_seconds
validates :puzzle_id, uniqueness: { score: :contestant }
end