Skip to content

Commit

Permalink
Fix broken rake task
Browse files Browse the repository at this point in the history
This came up in code review, and I tested it on data that didn't trigger the condition.
It turns out it shouldn't have been included.
  • Loading branch information
Katrina Owen committed Nov 30, 2016
1 parent f843b05 commit 9587c24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tasks/accounts.rake
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ namespace :accounts do
target.save
end

src_exercise.includes(:submissions).submissions.each do |submission|
src_exercise.submissions.each do |submission|
# transfer old iterations to the new solution, without checking for duplicates
submission.user_exercise_id = target.id
submission.user_id = dst.id
Expand Down

0 comments on commit 9587c24

Please sign in to comment.