Module: PgPartitioner
- Defined in:
- lib/pg_partitioner.rb,
lib/pg_partitioner/separation_type/month.rb
Defined Under Namespace
Modules: SeparationType
Class Method Summary collapse
Instance Method Summary collapse
-
#parting_column ⇒ Object
Template method Column which will determine partition for row (must be date or datetime type).
-
#partition_table_indexes ⇒ Object
Template method.
- #partition_table_named_indexes ⇒ Object
-
#partition_table_named_unique_indexes ⇒ Object
Template method.
-
#partition_table_unique_indexes ⇒ Object
Template method.
Class Method Details
.extended(base) ⇒ Object
5 6 7 |
# File 'lib/pg_partitioner.rb', line 5 def self.extended(base) base.extend(PgPartitioner::SeparationType::Month) end |
Instance Method Details
#parting_column ⇒ Object
Template method Column which will determine partition for row (must be date or datetime type). Default value is :created_at
11 12 13 |
# File 'lib/pg_partitioner.rb', line 11 def parting_column :created_at end |
#partition_table_indexes ⇒ Object
Template method
16 |
# File 'lib/pg_partitioner.rb', line 16 def partition_table_indexes; end |
#partition_table_named_indexes ⇒ Object
18 |
# File 'lib/pg_partitioner.rb', line 18 def partition_table_named_indexes; end |
#partition_table_named_unique_indexes ⇒ Object
Template method
24 |
# File 'lib/pg_partitioner.rb', line 24 def partition_table_named_unique_indexes; end |
#partition_table_unique_indexes ⇒ Object
Template method
21 |
# File 'lib/pg_partitioner.rb', line 21 def partition_table_unique_indexes; end |