15 lines
283 B
Elixir
15 lines
283 B
Elixir
defmodule JOL.Repo.Migrations.CreatePosts do
|
|
use Ecto.Migration
|
|
|
|
def change do
|
|
create table(:posts) do
|
|
add :title, :string
|
|
add :body, :text
|
|
add :published_at, :naive_datetime
|
|
add :slug, :string
|
|
|
|
timestamps(type: :utc_datetime)
|
|
end
|
|
end
|
|
end
|