20cd1bb579
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
16 lines
257 B
Elixir
16 lines
257 B
Elixir
defmodule Eventos.Repo.Migrations.CreateTags do
|
|
use Ecto.Migration
|
|
|
|
def change do
|
|
create table(:tags) do
|
|
add :title, :string
|
|
add :slug, :string, null: false
|
|
|
|
timestamps()
|
|
end
|
|
|
|
create unique_index(:tags, [:slug])
|
|
|
|
end
|
|
end
|