debian-mirror-gitlab/app/models/postgresql/detached_partition.rb
2023-01-12 18:35:48 +00:00

11 lines
303 B
Ruby

# frozen_string_literal: true
module Postgresql
class DetachedPartition < ::Gitlab::Database::SharedModel
scope :ready_to_drop, -> { where('drop_after < ?', Time.current) }
def fully_qualified_table_name
"#{Gitlab::Database::DYNAMIC_PARTITIONS_SCHEMA}.#{table_name}"
end
end
end