summaryrefslogtreecommitdiff
path: root/spec/factories
diff options
context:
space:
mode:
authorReuben Pereira <rpereira@gitlab.com>2019-04-26 17:23:26 +0000
committerDouglas Barbosa Alexandre <dbalexandre@gmail.com>2019-04-26 17:23:26 +0000
commit4376167a04aaeed084ad93aab2e65550109235c6 (patch)
tree99fa950932bf6ea5c0d453c9d4494a0adb0c16f3 /spec/factories
parentbb6908cd5bcb14d70dfadbc2a16d7310bfa65445 (diff)
downloadgitlab-ce-4376167a04aaeed084ad93aab2e65550109235c6.tar.gz
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.rb8
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