analytics/priv/repo/migrations/20200219124314_create_custom_domains.exs
Uku Taht 79b9f72b52
Custom domains (#34)
* UI to create custom domains

* Only call ssh once per domain

* Update copy for custom domain setup

* Use correct user for ssh
2020-02-26 10:54:21 +02:00

16 lines
384 B
Elixir

defmodule Plausible.Repo.Migrations.CreateCustomDomains do
use Ecto.Migration
def change do
create table(:custom_domains) do
add :domain, :text, null: false
add :site_id, references(:sites), null: false
add :has_ssl_certificate, :boolean, null: false, default: false
timestamps()
end
create unique_index(:custom_domains, :site_id)
end
end