Accounts context can now set and clear a user's favorite shift template
This commit is contained in:
parent
ea0f8b86cd
commit
19b9bbfb0d
3 changed files with 28 additions and 9 deletions
priv/repo/migrations
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue