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/
18 lines
428 B
Elixir
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
|