memEx/priv/repo/migrations/20220726001039_create_contexts.exs

16 lines
339 B
Elixir
Raw Normal View History

2022-07-25 20:11:08 -04:00
defmodule Memex.Repo.Migrations.CreateContexts do
use Ecto.Migration
def change do
create table(:contexts, primary_key: false) do
add :id, :binary_id, primary_key: true
add :title, :string
add :content, :text
add :tag, {:array, :string}
add :visibility, :string
timestamps()
end
end
end