13 lines
220 B
Elixir
13 lines
220 B
Elixir
|
defmodule Bright.Repo.Migrations.CreatePosts do
|
||
|
use Ecto.Migration
|
||
|
|
||
|
def change do
|
||
|
create table(:posts) do
|
||
|
add :title, :string
|
||
|
add :body, :text
|
||
|
|
||
|
timestamps(type: :utc_datetime)
|
||
|
end
|
||
|
end
|
||
|
end
|