diff --git a/app/models/team.rb b/app/models/team.rb index 8738d12..925ce9f 100644 --- a/app/models/team.rb +++ b/app/models/team.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true class Team < ApplicationRecord - belongs_to :tournament + belongs_to :tournament, optional: true has_many :group_scores, dependent: :destroy has_many :scores, dependent: :destroy