Elixir Today: Remove duplicate rows in PostgreSQL using Ecto
Intro
In this tutorial, I want to share with you how to remove duplicate rows in your schema using Ecto.
Preparation
In your schema migration, let say you have this schema setup.
CREATE TABLE(:student_teacher, primary_key: false) do
add :id, ...
paugramming.hashnode.dev1 min read