Add User.list_inactive_users_query/1

This commit is contained in:
Roman Chvanikov 2019-04-19 22:17:54 +07:00
commit 8add119444
3 changed files with 150 additions and 0 deletions

View file

@ -0,0 +1,9 @@
defmodule Pleroma.Repo.Migrations.AddSigninAndLastDigestDatesToUser do
use Ecto.Migration
def change do
alter table(:users) do
add(:last_digest_emailed_at, :naive_datetime, default: fragment("now()"))
end
end
end