pleroma/priv/repo/migrations/20201221202251_create_hashtags.exs
2021-12-28 11:23:12 -06:00

14 lines
270 B
Elixir

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