mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2024-07-05 05:15:52 +00:00
12 lines
247 B
Elixir
12 lines
247 B
Elixir
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
|