Validate presence of name
This commit is contained in:
parent
6e1af687ad
commit
0bcd3a88a9
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue