add contexts

This commit is contained in:
2022-07-25 20:11:08 -04:00
parent 63fca7ff6a
commit 3347b26256
13 changed files with 587 additions and 0 deletions

View File

@ -0,0 +1,15 @@
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