defmodule Medicode.Repo.Migrations.AddUserIdToCodeFeedbacks do | |
use Ecto.Migration | |
def change do | |
alter table("code_feedbacks") do | |
# TODO: This doesn't need to be nullable | |
add( | |
:user_id, | |
references(:users, type: :binary_id, on_delete: :nilify_all), | |
null: true | |
) | |
end | |
end | |
end | |