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: 76b299ff9d49345d4a3f5fabef8fa4c3c7d993bc (plain)
1
2
3
4
5
6
7
# frozen_string_literal: true

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