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

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_columnObject

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_indexesObject

Template method



16
# File 'lib/pg_partitioner.rb', line 16

def partition_table_indexes; end

#partition_table_named_indexesObject



18
# File 'lib/pg_partitioner.rb', line 18

def partition_table_named_indexes; end

#partition_table_named_unique_indexesObject

Template method



24
# File 'lib/pg_partitioner.rb', line 24

def partition_table_named_unique_indexes; end

#partition_table_unique_indexesObject

Template method



21
# File 'lib/pg_partitioner.rb', line 21

def partition_table_unique_indexes; end