Merge branch 'active-user-count' into 'develop'
Monthly Active Users Closes #2332 See merge request pleroma/pleroma!3283
This commit is contained in:
commit
69c560cfba
11 changed files with 160 additions and 1 deletions
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue