Remove selective sync concern from Geo::Fdw::GeoNode

parent 0fa752af
...@@ -123,12 +123,7 @@ module Geo::SelectiveSync ...@@ -123,12 +123,7 @@ module Geo::SelectiveSync
namespaces.arel_table namespaces.arel_table
end end
def project_model
raise NotImplementedError,
"#{self.class} does not implement #{__method__}"
end
def projects_table def projects_table
project_model.arel_table Project.arel_table
end end
end end
...@@ -3,8 +3,6 @@ ...@@ -3,8 +3,6 @@
module Geo module Geo
module Fdw module Fdw
class GeoNode < ::Geo::BaseFdw class GeoNode < ::Geo::BaseFdw
include ::Geo::SelectiveSync
self.primary_key = :id self.primary_key = :id
self.inheritance_column = nil self.inheritance_column = nil
self.table_name = Gitlab::Geo::Fdw.foreign_table_name('geo_nodes') self.table_name = Gitlab::Geo::Fdw.foreign_table_name('geo_nodes')
......
...@@ -409,8 +409,4 @@ class GeoNode < ApplicationRecord ...@@ -409,8 +409,4 @@ class GeoNode < ApplicationRecord
def projects_for_selected_shards def projects_for_selected_shards
Project.within_shards(selective_sync_shards) Project.within_shards(selective_sync_shards)
end end
def project_model
Project
end
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