Here are the steps you should take:
1. Contact the Bakersfield City Planning Department: They can provide information on zoning regulations and any specific requirements for keeping horses within city limits.
2. Check with your HOA: If you live in a community with an HOA, they may have their own rules regarding livestock. Contact them directly for information about their policies.
3. Consult a local attorney: An attorney can provide you with the most accurate and up-to-date legal information.
Remember, local regulations can vary, so it's important to research and confirm the rules specific to your location.