poa-netstats-warehouse/priv/auth/migrations/20180809170931_create_banne...

13 lines
284 B
Elixir

defmodule POABackend.Auth.Repo.Migrations.CreateBannedTokens do
use Ecto.Migration
def change do
create_if_not_exists table(:banned_tokens, primary_key: false) do
add :token, :string, primary_key: true
add :expires, :integer
timestamps()
end
end
end