frenzy/priv/repo/migrations/20181121001110_create_items...

22 lines
479 B
Elixir
Raw Normal View History

2019-02-11 22:22:35 +00:00
defmodule Frenzy.Repo.Migrations.CreateItems do
use Ecto.Migration
def change do
create table(:items) do
add :guid, :string
add :title, :string
add :url, :string
add :creator, :string
add :date, :utc_datetime
add :content, :text
add :read, :boolean, default: false, null: false
add :read_date, :utc_datetime
add :feed_id, references(:feeds)
timestamps()
end
# create index(:items, [:feed])
end
end