diff options
author | Reuben Pereira <rpereira@gitlab.com> | 2019-04-26 20:23:26 +0300 |
---|---|---|
committer | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2019-04-26 20:23:26 +0300 |
commit | 4376167a04aaeed084ad93aab2e65550109235c6 (patch) | |
tree | 99fa950932bf6ea5c0d453c9d4494a0adb0c16f3 /spec/factories | |
parent | bb6908cd5bcb14d70dfadbc2a16d7310bfa65445 (diff) |
Add ProjectMetricsDashboardSetting model and table
This new table will be used to store the external_dashboard_url which
allows users to add a link to their external dashboards (ex Grafana)
to the Metrics dashboard.
Diffstat (limited to 'spec/factories')
-rw-r--r-- | spec/factories/project_metrics_settings.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/factories/project_metrics_settings.rb b/spec/factories/project_metrics_settings.rb new file mode 100644 index 00000000000..234753f9b87 --- /dev/null +++ b/spec/factories/project_metrics_settings.rb @@ -0,0 +1,8 @@ +# frozen_string_literal: true + +FactoryBot.define do + factory :project_metrics_setting, class: ProjectMetricsSetting do + project + external_dashboard_url 'https://grafana.com' + end +end |