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

17 lines
300 B
Elixir
Raw Normal View History

defmodule Mobilizon.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