chiya/priv/repo/migrations/20230305162242_create_notes.exs

19 lines
359 B
Elixir
Raw Permalink Normal View History

2023-03-05 17:23:16 +01:00
defmodule Chiya.Repo.Migrations.CreateNotes do
use Ecto.Migration
def change do
create table(:notes) do
add :name, :string
add :content, :text
add :slug, :string
add :published_at, :naive_datetime
add :kind, :string
add :url, :string
timestamps()
end
create unique_index(:notes, [:slug])
end
end