diff --git a/app/models/match.rb b/app/models/match.rb index 9b97a3d..54c1f66 100644 --- a/app/models/match.rb +++ b/app/models/match.rb @@ -4,4 +4,6 @@ class Match < ApplicationRecord belongs_to :stage belongs_to :group has_many :scores, dependent: :destroy + + validates :scores, length: { maximum: 2 } end