Editable landing page.

This commit is contained in:
codevictory
2021-05-26 21:47:50 +03:00
parent 8befa3058c
commit f1e44e87d9
20 changed files with 484 additions and 68 deletions

View File

@@ -0,0 +1,18 @@
defmodule Runosaari.Pages.Index do
use Ecto.Schema
import Ecto.Changeset
schema "index_paragraphs" do
field :content, :string
field :seqnum, :integer, default: 999
timestamps()
end
@doc false
def changeset(index, attrs) do
index
|> cast(attrs, [:content, :seqnum])
|> validate_required([:content, :seqnum])
end
end