debian-mirror-gitlab/app/models/postgresql/detached_partition.rb
2021-11-11 11:23:49 +05:30

7 lines
190 B
Ruby

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