diff --git a/priv/repo/migrations/20211004004848_require_user_id.exs b/priv/repo/migrations/20211004004848_require_user_id.exs new file mode 100644 index 0000000..82da4bf --- /dev/null +++ b/priv/repo/migrations/20211004004848_require_user_id.exs @@ -0,0 +1,9 @@ +defmodule UserPreferences.Repo.Migrations.RequireUserId do + use Ecto.Migration + + def change do + alter table(:preferences) do + modify :user_id, :integer, null: false + end + end +end