Add validations for max_resources_per_workspace and shared_namespace
Issue: Rails: Do not generate ResourceQuota when using... (#535150 - closed)
What does this MR do and why?
Add model validations that enforce max_resources_per_workspace must be an empty hash if shared_namespace is set to a non-empty string for the workspaces_agent_config table.
References
Screenshots or screen recordings
N.A.
How to set up and validate locally
- Run the unit tests.
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.