Add active user count

This commit is contained in:
Egor Kislitsyn 2021-01-23 00:37:49 +04:00
commit 793fc77b16
No known key found for this signature in database
GPG key ID: 1B49CB15B71E7805
7 changed files with 60 additions and 1 deletions

View file

@ -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