Make a new migration file (in priv/repo/migrations) like:
defmodule YourApp.Repo.Migrations.StrToInt do
use Ecto.Migration
def change do
alter table(:table_name) do
remove :column_name
add :column_name, :integer
end
end
end
Then run mix ecto.migrate






















