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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user