medicode / priv /repo /migrations /20240125172837_migrate_to_vector_for_code_feedbacks.exs
timgremore's picture
chore: Rename app to Medicode
3f219b5
raw
history blame
No virus
488 Bytes
defmodule Medicode.Repo.Migrations.MigrateToVectorForCodeFeedbacks do
use Ecto.Migration
def change do
alter table("code_feedbacks") do
add :text_vector, :vector, size: 384
add :code_vector_id,
references(:code_vectors, type: :binary_id, on_delete: :delete_all),
null: false
# These two columns can be found on the `code_vectors` table referenced above
remove :code, :string
remove :long_description, :string
end
end
end