When I use remove key in migration it was not delete the constraint in the table it only delete column name. Please help how can i create for that migration file.
defmodule ControlCenter.Repo.Migrations.CreateRemedyTable do
use Ecto.Migration
def up do
create table(:remedy, primary_key: false) do
add :remedy_code, :string, primary_key: true
add :description, :string
add :cause_code, :string, primary_key: true
end
end
def down do
drop table(:remedy)
end
end
I want to remove cause_code from the table