logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma git clone https://hacktivis.me/git/pleroma.git

20190404050946_add_fields_to_user_invite_tokens.exs (473B)


  1. # Pleroma: A lightweight social networking server
  2. # Copyright © 2017-2022 Pleroma Authors <https://pleroma.social/>
  3. # SPDX-License-Identifier: AGPL-3.0-only
  4. defmodule Pleroma.Repo.Migrations.AddFieldsToUserInviteTokens do
  5. use Ecto.Migration
  6. def change do
  7. alter table(:user_invite_tokens) do
  8. add(:expires_at, :date)
  9. add(:uses, :integer, default: 0)
  10. add(:max_use, :integer)
  11. add(:invite_type, :string, default: "one_time")
  12. end
  13. end
  14. end