Save the whole stage instead of the single matches

This commit is contained in:
Daniel Schädler 2019-05-22 09:19:16 +02:00
parent b36e3c4251
commit 51056d340c
1 changed files with 1 additions and 1 deletions

View File

@ -26,8 +26,8 @@ FactoryBot.define do
evaluator.match_count == -1 ? 2**stage.level : evaluator.match_count)
stage.matches.each_with_index do |match, i|
match.position = i
match.save!
end
stage.save!
end
end
end