rubyforgood / pet-rescue

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

Open kasugaijin opened 1 month ago

kasugaijin commented 1 month ago

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.

Gabe-Torres commented 1 month ago

Seems like a fun one! I'll take it

kasugaijin commented 1 month ago

@Gabe-Torres all yours!

github-actions[bot] commented 3 days ago

This issue is marked as stale due to no activity within 30 days. If no further activity is detected within 7 days, it will be unassigned.