blob: d285f25243fbbdca8533c28ec35e2dacd44f102c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
defmodule Pleroma.Repo.Migrations.CreateHashtags do
use Ecto.Migration
def change do
create_if_not_exists table(:hashtags) do
add(:name, :text, null: false)
timestamps()
end
create_if_not_exists(unique_index(:hashtags, [:name]))
end
end
|