Add soft delete user account

This commit is contained in:
Alex Lion
2024-12-28 13:13:55 -05:00
parent b695226fec
commit f3a36163b6
10 changed files with 80 additions and 30 deletions

View File

@@ -0,0 +1,11 @@
defmodule Claper.Repo.Migrations.AddDeletedAtToUsers do
use Ecto.Migration
def change do
alter table(:users) do
add :deleted_at, :naive_datetime, null: true
end
create index(:users, [:deleted_at])
end
end