Add validations to DevOpsReport::Metric
This commit: - Adds presence and numericality validations to DevOpsReport::Metric model to not rely on database constraints alone when handling record creation. - Moves the `METRICS` constant to the model to have a single source of truth for these metric attributes.
Showing
Please register or sign in to comment