debianize-mobilizon/priv/repo/migrations/20180110091747_create_categories.exs
Thomas Citharel 8b4d1ab4e4 Add categories properly
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2018-01-15 12:04:09 +01:00

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