diff options
author | Roman Chvanikov <chvanikoff@gmail.com> | 2019-04-19 22:17:54 +0700 |
---|---|---|
committer | Roman Chvanikov <chvanikoff@gmail.com> | 2019-04-19 22:19:00 +0700 |
commit | 8add1194448cfc183dce01b86451422195d44023 (patch) | |
tree | b61d01c03933a3d6a35421199e3ef84e40efdd2d /priv | |
parent | aeafa0b2ef996f15f9ff4a6ade70a693b12b208f (diff) | |
download | pleroma-8add1194448cfc183dce01b86451422195d44023.tar.gz pleroma-8add1194448cfc183dce01b86451422195d44023.zip |
Add User.list_inactive_users_query/1
Diffstat (limited to 'priv')
-rw-r--r-- | priv/repo/migrations/20190413085040_add_signin_and_last_digest_dates_to_user.exs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/priv/repo/migrations/20190413085040_add_signin_and_last_digest_dates_to_user.exs b/priv/repo/migrations/20190413085040_add_signin_and_last_digest_dates_to_user.exs new file mode 100644 index 000000000..4312b171f --- /dev/null +++ b/priv/repo/migrations/20190413085040_add_signin_and_last_digest_dates_to_user.exs @@ -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 |