defmodule Prymn.Repo.Migrations.CreateServers do use Ecto.Migration def change do create table("servers") do add :name, :string add :public_ip, :string add :provider, :string add :connection_status, :string add :registration_token, :binary timestamps() end create index("servers", [:registration_token], unique: true) end end