diff options
author | feld <feld@feld.me> | 2021-02-02 17:07:57 +0000 |
---|---|---|
committer | feld <feld@feld.me> | 2021-02-02 17:07:57 +0000 |
commit | 69c560cfba1400010c938b2e79d821285ce1d697 (patch) | |
tree | ef884b1f0b7abfe95ec9e3948a8b5e3b938b12dc /priv | |
parent | 08a2cb750de0fb7cdbdd044071cc10ad7f0096aa (diff) | |
parent | a51d903e0c8c87247df6b3cdecc476269edf58ce (diff) |
Merge branch 'active-user-count' into 'develop'
Monthly Active Users
Closes #2332
See merge request pleroma/pleroma!3283
Diffstat (limited to 'priv')
-rw-r--r-- | priv/repo/migrations/20210122151424_add_last_active_at_to_users.exs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/priv/repo/migrations/20210122151424_add_last_active_at_to_users.exs b/priv/repo/migrations/20210122151424_add_last_active_at_to_users.exs new file mode 100644 index 000000000..9671e495b --- /dev/null +++ b/priv/repo/migrations/20210122151424_add_last_active_at_to_users.exs @@ -0,0 +1,11 @@ +defmodule Pleroma.Repo.Migrations.AddLastActiveAtToUsers do + use Ecto.Migration + + def change do + alter table(:users) do + add(:last_active_at, :naive_datetime) + end + + create_if_not_exists(index(:users, [:last_active_at])) + end +end |