From 86960c270928beeca44169a240702944f36c3bd1 Mon Sep 17 00:00:00 2001 From: CJ_Clippy Date: Thu, 16 Jan 2025 13:09:39 -0800 Subject: [PATCH] remove number_of_pets --- services/bright/lib/bright/user.ex | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/services/bright/lib/bright/user.ex b/services/bright/lib/bright/user.ex index aba9ce3..797c53f 100644 --- a/services/bright/lib/bright/user.ex +++ b/services/bright/lib/bright/user.ex @@ -6,7 +6,6 @@ defmodule Bright.User do schema "users" do field :name, :string field :email, :string - field :number_of_pets, :integer field :is_admin, :boolean field :auth_token, :string field :auth_token_expires_at, :utc_datetime @@ -21,8 +20,8 @@ defmodule Bright.User do @doc false def changeset(user, attrs) do user - |> cast(attrs, [:name, :email, :bio, :number_of_pets, :is_admin]) - |> validate_required([:name, :email, :bio, :number_of_pets]) + |> cast(attrs, [:name, :email, :bio, :is_admin]) + |> validate_required([:name, :email, :bio]) end