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