forked from potsda.mn/mobilizon
8b4d1ab4e4
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
17 lines
298 B
Elixir
17 lines
298 B
Elixir
defmodule Eventos.Repo.Migrations.CreateCategories do
|
|
use Ecto.Migration
|
|
|
|
def change do
|
|
create table(:categories) do
|
|
add :title, :string
|
|
add :description, :string
|
|
add :picture, :string
|
|
|
|
timestamps()
|
|
end
|
|
|
|
create unique_index(:categories, [:title])
|
|
|
|
end
|
|
end
|