medicode
/
priv
/repo
/migrations
/20240220230712_add_unique_constraint_to_code_feedbacks_for_user_and_transcription_chunk.exs
defmodule Medicode.Repo.Migrations.AddUniqueConstraintToCodeFeedbacksForUserAndTranscriptionChunk do | |
use Ecto.Migration | |
def change do | |
create( | |
unique_index( | |
:code_feedbacks, | |
[:transcription_chunk_id, :user_id], | |
name: :index_for_transcription_chunk_user_id_uniqueness | |
) | |
) | |
end | |
end | |