much progress on shift assigning & app navigation
This commit is contained in:
parent
4541070f75
commit
8957f2d1dd
33 changed files with 363 additions and 330 deletions
|
@ -10,7 +10,7 @@ defmodule Shift73k.Repo.Migrations.CreateShiftTemplates do
|
|||
add :time_zone, :string, null: false
|
||||
add :time_start, :time, null: false
|
||||
add :time_end, :time, null: false
|
||||
add :user_id, references(:users, on_delete: :nothing, type: :binary_id)
|
||||
add :user_id, references(:users, on_delete: :delete_all, type: :binary_id)
|
||||
|
||||
timestamps()
|
||||
end
|
||||
|
|
|
@ -3,7 +3,7 @@ defmodule Shift73k.Repo.Migrations.AddUserDefaultShiftColumn do
|
|||
|
||||
def change do
|
||||
alter table(:users) do
|
||||
add(:fave_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: :nilify_all))
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue