debianize-mobilizon/priv/repo/migrations/20180110091747_create_categories.exs

17 lines
298 B
Elixir
Raw Normal View History

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