summaryrefslogtreecommitdiff
path: root/app/models/project_metrics_setting.rb
blob: a2a7dc571a4e86a46639ef4b619d81e0af2f081b (plain)
1
2
3
4
5
6
7
8
9
# frozen_string_literal: true

class ProjectMetricsSetting < ApplicationRecord
  belongs_to :project

  validates :external_dashboard_url,
    length: { maximum: 255 },
    addressable_url: { enforce_sanitization: true, ascii_only: true }
end