Sha256: 7504f4ea9eeae76a2929d4fbf8bb20213a819eb3a01b86509fb9d83d5e70ddd3
Contents?: true
Size: 476 Bytes
Versions: 4
Compression:
Stored size: 476 Bytes
Contents
module SimpleMySQLPartitioning module Adapter def self.included(model) model.extend ClassMethods end module ClassMethods def partitioning_by(column, type:) @partition_config = { column: column, type: type } @partition = "SimpleMySQLPartitioning::#{type.to_s.classify}".constantize.new(self) end def partition @partition end def partition_config @partition_config end end end end
Version data entries
4 entries across 4 versions & 1 rubygems