Save the whole stage instead of the single matches
This commit is contained in:
parent
b36e3c4251
commit
51056d340c
|
|
@ -26,8 +26,8 @@ FactoryBot.define do
|
||||||
evaluator.match_count == -1 ? 2**stage.level : evaluator.match_count)
|
evaluator.match_count == -1 ? 2**stage.level : evaluator.match_count)
|
||||||
stage.matches.each_with_index do |match, i|
|
stage.matches.each_with_index do |match, i|
|
||||||
match.position = i
|
match.position = i
|
||||||
match.save!
|
|
||||||
end
|
end
|
||||||
|
stage.save!
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue