mirror of
https://github.com/ClaperCo/Claper.git
synced 2025-12-16 03:47:56 +01:00
Add soft delete user account
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user