analytics/priv/repo/migrations/20191031051340_add_goals.exs

17 lines
334 B
Elixir
Raw Normal View History

2019-10-31 08:39:51 +03:00
defmodule Plausible.Repo.Migrations.AddGoals do
use Ecto.Migration
def change do
create table(:goals) do
add :domain, :text, null: false
add :name, :text, null: false
add :event_name, :text
add :page_path, :text
timestamps()
end
create unique_index(:goals, [:domain, :name])
end
end