Merge remote-tracking branch 'pleroma/develop' into cycles-router
[akkoma] / priv / repo / migrations / 20201221202251_create_hashtags.exs
1 defmodule Pleroma.Repo.Migrations.CreateHashtags do
2 use Ecto.Migration
3
4 def change do
5 create_if_not_exists table(:hashtags) do
6 add(:name, :citext, null: false)
7
8 timestamps()
9 end
10
11 create_if_not_exists(unique_index(:hashtags, [:name]))
12 end
13 end