diff --git a/app/models/team.rb b/app/models/team.rb index 6df303e..023b9db 100644 --- a/app/models/team.rb +++ b/app/models/team.rb @@ -4,4 +4,6 @@ class Team < ApplicationRecord belongs_to :tournament has_many :group_scores, dependent: :destroy has_many :scores, dependent: :destroy + + validates :name, presence: true end