Skip to content

Commit

Permalink
Allow for replacing activity round
Browse files Browse the repository at this point in the history
  • Loading branch information
jonatanklosko committed Aug 10, 2024
1 parent 526ff36 commit 9ffd912
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/wca_live/competitions/activity.ex
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ defmodule WcaLive.Competitions.Activity do
has_many :child_activities, Activity, foreign_key: :parent_activity_id, on_replace: :delete
has_many :assignments, Assignment

belongs_to :round, Round
belongs_to :round, Round, on_replace: :nilify
end

def changeset(activity, attrs) do
Expand Down

0 comments on commit 9ffd912

Please sign in to comment.