shift73k/priv/repo/migrations/20210306173113_add_user_default_shift_column.exs

10 lines
253 B
Elixir

defmodule Shift73k.Repo.Migrations.AddUserDefaultShiftColumn do
use Ecto.Migration
def change do
alter table(:users) do
add :fave_shift_template_id, references(:shift_templates, type: :binary_id, on_delete: :nilify_all)
end
end
end