Pet Rescue is an application making it easy to link adopters/fosters with pets. We work with grassroots pet rescue organizations to understand how we can make the most impact.
MIT License
60
stars
100
forks
source link
Organization: add null constraints and update org create service #913
Please add null constraints on organizations table in the database for name, slug, email and then update then add email attribute to the Organizations::CreateService when creating an Organization.
Also on the Organization model, we need to validate:
name for presence
slug for presence and also do not allow any characters that are forbidden in URLs. Look into options for validating this slug.
email for format, presence.
Please add null constraints on organizations table in the database for
name
,slug
,email
and then update then add email attribute to the Organizations::CreateService when creating an Organization.Also on the Organization model, we need to validate:
name
for presenceslug
for presence and also do not allow any characters that are forbidden in URLs. Look into options for validating this slug.email
for format, presence.