Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/glacials/splits-io. a speedrunning data store and analysis engine splits.io
Something went wrong. Try again.
455 B · 11 lines
at lambda-parse
123456789101112desc 'Reparse all runs and update their corresponding database information to match.'task reparse: [:environment] do Run.all.each do |run| if run.parse.present? game = Game.find_by(name: run.parse.game) || Game.create(name: run.parse.game) run.category = Category.find_by(game: game, name: run.parse.category) || game.categories.new(game: game, name: run.parse.category) run.time = run.parse.time run.save end endend