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

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