Welcome to mirror list, hosted at ThFree Co, Russian Federation.

detached_partition.rb « postgresql « models « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 12b48895e0cdf42d6b6ea256892e7eae8b1c47d0 (plain)
1
2
3
4
5
6
7
# frozen_string_literal: true

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