medicode
/
priv
/repo
/migrations
/20240220144617_add_unique_constraint_for_transcription_chunk_id_and_code_vector_id_to_transcription_chunk_code_vectors.exs
defmodule Medicode.Repo.Migrations.AddUniqueConstraintForTranscriptionChunkIdAndCodeVectorIdToTranscriptionChunkCodeVectors do | |
use Ecto.Migration | |
def change do | |
create( | |
unique_index( | |
:transcription_chunk_code_vectors, | |
[:transcription_chunk_id, :code_vector_id], | |
name: :index_for_chunk_code_vector_uniqueness | |
) | |
) | |
end | |
end | |