• Simon Tomlinson's avatar
    Prune database partitions older than a retention period · c8b84ced
    Simon Tomlinson authored
    When a monthly-partitioned model is specified with
    `partition_by :some_column, retain_for: 2.months`
    this feature will detach partitions that are more than two months in the
    past. A week later, a second worker will drop the tables that were
    previously detached.
    
    Changelog: added
    c8b84ced
detached_partition_dropper.rb 2.27 KB