defmodule Medicode.Repo.Migrations.AddTranscriptionChunkIdToCodeFeedbacks do | |
use Ecto.Migration | |
def change do | |
alter table(:code_feedbacks) do | |
# TODO: This shouldn't be nullable | |
add( | |
:transcription_chunk_id, | |
references(:users, type: :binary_id, on_delete: :delete_all), | |
null: true | |
) | |
end | |
end | |
end | |