1
0
mirror of https://github.com/mgerb/classic-wow-forums synced 2026-01-11 09:32:51 +00:00

server - hard code all seeds for consistency

This commit is contained in:
2018-01-13 14:31:28 -06:00
parent cce5a9ed53
commit 58b913f5b8
2 changed files with 153 additions and 152 deletions

View File

@@ -11,12 +11,6 @@ defmodule MyApp.Data.Category do
field :title, :string
end
def changeset(category, params \\ %{}) do
category
|> cast(params, [:category, :title])
|> validate_required([:category, :title])
end
def get_categories() do
Repo.all(Data.Category)
end