Validate presence of name

This commit is contained in:
Thor77 2018-11-19 14:45:01 +01:00
parent 6e1af687ad
commit 0bcd3a88a9
1 changed files with 2 additions and 0 deletions

View File

@ -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