mirror of
https://github.com/plausible/analytics.git
synced 2024-12-26 11:02:52 +03:00
16 lines
384 B
Elixir
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
|