defmodule PhoenixRealWorld.Repo.Migrations.CreateArticles do use Ecto.Migration def change do create table(:articles) do add :title, :string, null: false #←null: falseを追加 add :body, :text, null: false #←null: falseを追加 timestamps(type: :utc_datetime) end end end