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