summaryrefslogtreecommitdiff
path: root/priv
diff options
context:
space:
mode:
authorfeld <feld@feld.me>2021-02-02 17:11:38 +0000
committerfeld <feld@feld.me>2021-02-02 17:11:38 +0000
commitcd5ff7a9430a8e5886983610f1e16f966392a7ee (patch)
tree726875098c3908b5ebf455c6ea00e9a38e405733 /priv
parentfdf1dfed560e27cd4e367cc2952fcb1b4e2580db (diff)
parent2012800ed1618eeafddaaaaa05df4d3e10a2afff (diff)
downloadpleroma-cd5ff7a9430a8e5886983610f1e16f966392a7ee.tar.gz
pleroma-cd5ff7a9430a8e5886983610f1e16f966392a7ee.zip
Merge branch 'develop' into 'feature/2164-unify-api-arguments'
# Conflicts: # CHANGELOG.md
Diffstat (limited to 'priv')
-rw-r--r--priv/repo/migrations/20210122151424_add_last_active_at_to_users.exs11
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