Commit 14b0cb06 authored by Alex Kalderimis's avatar Alex Kalderimis

Rename Project.datadog_service to datadog_integration

Rename datadog_service association to datadog_integration
parent b5578e0a
......@@ -43,6 +43,7 @@ class Integration < ApplicationRecord
asana assembla
bamboo bugzilla buildkite
campfire confluence custom_issue_tracker
datadog
].to_set.freeze
serialize :properties, JSON # rubocop:disable Cop/ActiveRecordSerialize
......
......@@ -155,7 +155,7 @@ class Project < ApplicationRecord
has_one :campfire_integration, class_name: 'Integrations::Campfire'
has_one :confluence_integration, class_name: 'Integrations::Confluence'
has_one :custom_issue_tracker_integration, class_name: 'Integrations::CustomIssueTracker'
has_one :datadog_service, class_name: 'Integrations::Datadog'
has_one :datadog_integration, class_name: 'Integrations::Datadog'
has_one :discord_service, class_name: 'Integrations::Discord'
has_one :drone_ci_service, class_name: 'Integrations::DroneCi'
has_one :emails_on_push_service, class_name: 'Integrations::EmailsOnPush'
......
......@@ -363,7 +363,7 @@ project:
- integrations
- campfire_integration
- confluence_integration
- datadog_service
- datadog_integration
- discord_service
- drone_ci_service
- emails_on_push_service
......
......@@ -46,7 +46,7 @@ RSpec.describe Project, factory_default: :keep do
it { is_expected.to have_one(:asana_integration) }
it { is_expected.to have_many(:boards) }
it { is_expected.to have_one(:campfire_integration) }
it { is_expected.to have_one(:datadog_service) }
it { is_expected.to have_one(:datadog_integration) }
it { is_expected.to have_one(:discord_service) }
it { is_expected.to have_one(:drone_ci_service) }
it { is_expected.to have_one(:emails_on_push_service) }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment