Commit 64e4747b authored by Jarka Košanová's avatar Jarka Košanová

Merge branch '8895-remove-dependent-destroy-for-gitlab_subscription-assoc' into 'master'

Remove no longer required option for association

Closes #8895

See merge request gitlab-org/gitlab!37355
parents fc313b97 942ef926
......@@ -27,7 +27,7 @@ module EE
has_one :namespace_statistics
has_one :namespace_limit, inverse_of: :namespace
has_one :gitlab_subscription, dependent: :destroy # rubocop:disable Cop/ActiveRecordDependent
has_one :gitlab_subscription
has_one :elasticsearch_indexed_namespace
accepts_nested_attributes_for :gitlab_subscription
......
......@@ -14,7 +14,6 @@ RSpec.describe Namespace do
it { is_expected.to have_one(:namespace_statistics) }
it { is_expected.to have_one(:namespace_limit) }
it { is_expected.to have_one(:gitlab_subscription).dependent(:destroy) }
it { is_expected.to have_one(:elasticsearch_indexed_namespace) }
it { is_expected.to delegate_method(:extra_shared_runners_minutes).to(:namespace_statistics) }
......
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