Sha256: 98f6381867fd701be3ce73a31d2c4dfe4efb04936af1431d8a277f245b68ca29
Contents?: true
Size: 395 Bytes
Versions: 21
Compression:
Stored size: 395 Bytes
Contents
module Partitioned # # Partition tables by created_at grouping them by week, with # a week defined as seven days starting on Monday. # class ByCreatedAt < ByWeeklyTimeField self.abstract_class = true # the field to partition on, `created_at` # @return [Symbol] the partition field: `created_at` def self.partition_time_field return :created_at end end end
Version data entries
21 entries across 21 versions & 1 rubygems