removed label from shift template, added seeds for shift templates

This commit is contained in:
Adam Piontek 2021-03-07 08:01:46 -05:00
commit 66471c2931
14 changed files with 1143 additions and 75 deletions
lib/shift73k/shift_templates

View file

@ -8,7 +8,6 @@ defmodule Shift73k.ShiftTemplates.ShiftTemplate do
@primary_key {:id, :binary_id, autogenerate: true}
@foreign_key_type :binary_id
schema "shift_templates" do
field :label, :string
field :subject, :string, default: "My Work Shift"
field :description, :string
field :location, :string
@ -26,7 +25,6 @@ defmodule Shift73k.ShiftTemplates.ShiftTemplate do
def changeset(shift_template, attrs) do
shift_template
|> cast(attrs, [
:label,
:subject,
:description,
:location,