gitlab-org--gitlab-foss/app/models/postgresql/detached_partition.rb

8 lines
190 B
Ruby
Raw Normal View History

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