summaryrefslogtreecommitdiff
path: root/priv/repo/migrations/20171019141706_create_password_reset_tokens.exs
blob: dde0f945fa3f3ec46345ff90968efcc22fc6d22e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
defmodule Pleroma.Repo.Migrations.CreatePasswordResetTokens do
  use Ecto.Migration

  def change do
    create_if_not_exists table(:password_reset_tokens) do
      add :token, :string
      add :user_id, references(:users)
      add :used, :boolean, default: false

      timestamps()
    end
  end
end