Remove Geo::Fdw::Project model

parent 88b47e7f
# frozen_string_literal: true
module Geo
module Fdw
class Project < ::Geo::BaseFdw
include Routable
self.primary_key = :id
self.table_name = Gitlab::Geo::Fdw.foreign_table_name('projects')
belongs_to :namespace, class_name: 'Geo::Fdw::Namespace'
alias_method :parent, :namespace
class << self
def within_namespaces(namespace_ids)
where(arel_table.name => { namespace_id: namespace_ids })
end
def within_shards(shard_names)
where(repository_storage: Array(shard_names))
end
end
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