Removing an Association with Ecto

:waving_hand:

Would setting the event_id to NULL work?

import Ecto.Query

def disassociate_number_from_event(number_id) do
  App.Events.Number
  |> where(id: ^number_id)
  |> App.Repo.update_all(set: [event_id: nil])
end