• Piotr Skorupa's avatar
    Add validations to DevOpsReport::Metric · 092f06a7
    Piotr Skorupa authored
    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.
    092f06a7
metric.rb 1.34 KB