normalise markup by default (#316)
[akkoma] / priv / repo / migrations / 20170321074828_create_activity.exs
1 defmodule Pleroma.Repo.Migrations.CreatePleroma.Activity do
2 use Ecto.Migration
3
4 def change do
5 create_if_not_exists table(:activities) do
6 add(:data, :map)
7
8 timestamps()
9 end
10
11 create_if_not_exists(index(:activities, [:data], using: :gin))
12 end
13 end