dotfiles/priv/repo/migrations/20230609164352_create_servers.exs
Nikos Papadakis 59c8c6ee23
Move Mix project to the root dir
This commit moves the mix.exs, mix.lock and priv directors that were
inside app/ to the root directory. Configuration tweaks with paths were
done for the asset building.

The priv/ directory had to be moved because mix by default symlinks it
inside the build output, and I couldn't find a configuration option to
have it live inside app/
2023-11-04 16:33:51 +02:00

18 lines
428 B
Elixir

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 :status, :string
add :registration_token, :binary
timestamps()
end
create index("servers", [:registration_token], unique: true)
create index("servers", [:public_ip], unique: true)
end
end