forked from AkkomaGang/akkoma
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
|