353 B · text History dc2edab
defmodule Diogramos.Repo.Migrations.AddLabelToUsersTokens do
  use Ecto.Migration

  def change do
    # Only "api" tokens carry a label ("Pixel 7, kitchen"); it is what
    # distinguishes rows in the Connected devices list, where every row
    # otherwise looks identical.
    alter table(:users_tokens) do
      add :label, :string
    end
  end
end