normalise markup by default (#316)
[akkoma] / priv / repo / migrations / 20190123125546_create_instances.exs
1 defmodule Pleroma.Repo.Migrations.CreateInstances do
2 use Ecto.Migration
3
4 def change do
5 create_if_not_exists table(:instances) do
6 add(:host, :string)
7 add(:unreachable_since, :naive_datetime_usec)
8
9 timestamps()
10 end
11
12 create_if_not_exists(unique_index(:instances, [:host]))
13 create_if_not_exists(index(:instances, [:unreachable_since]))
14 end
15 end