remove number_of_pets
This commit is contained in:
parent
43ebe15745
commit
86960c2709
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue