Remove Geo::Fdw::GeoNodeNamespaceLink model

Since GitLab 13.2 we don't rely on FDW query/models
parent 34e1853e
......@@ -8,8 +8,6 @@ module Geo
self.table_name = Gitlab::Geo::Fdw.foreign_table_name('geo_nodes')
serialize :selective_sync_shards, Array # rubocop:disable Cop/ActiveRecordSerialize
has_many :geo_node_namespace_links, class_name: 'Geo::Fdw::GeoNodeNamespaceLink'
end
end
end
# frozen_string_literal: true
module Geo
module Fdw
class GeoNodeNamespaceLink < ::Geo::BaseFdw
self.table_name = Gitlab::Geo::Fdw.foreign_table_name('geo_node_namespace_links')
belongs_to :geo_node, class_name: 'Geo::Fdw::GeoNode', inverse_of: :namespaces
end
end
end
# frozen_string_literal: true
require 'spec_helper'
RSpec.describe Geo::Fdw::GeoNodeNamespaceLink, :geo, type: :model do
context 'relationships' do
it { is_expected.to belong_to(:geo_node).class_name('Geo::Fdw::GeoNode').inverse_of(:namespaces) }
end
end
# frozen_string_literal: true
require 'spec_helper'
RSpec.describe Geo::Fdw::GeoNode, :geo, type: :model do
context 'relationships' do
it { is_expected.to have_many(:geo_node_namespace_links).class_name('Geo::Fdw::GeoNodeNamespaceLink') }
end
end
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