Accounts context can now set and clear a user's favorite shift template

This commit is contained in:
Adam Piontek 2021-03-11 15:41:30 -05:00
parent ea0f8b86cd
commit 19b9bbfb0d
3 changed files with 28 additions and 9 deletions

View file

@ -3,7 +3,7 @@ defmodule Shift73k.Repo.Migrations.AddUserDefaultShiftColumn do
def change do
alter table(:users) do
add(:default_shift_template_id, references(:shift_templates, type: :binary_id, on_delete: :delete_all))
add(:fave_shift_template_id, references(:shift_templates, type: :binary_id, on_delete: :delete_all))
end
end
end