Class: PGTrunk::Operations::Statistics::Base Abstract

Inherits:
PGTrunk::Operation show all
Defined in:
lib/pg_trunk/operations/statistics/base.rb

Overview

This class is abstract.

Base class for operations with check constraints

Instance Method Summary collapse

Methods included from PGTrunk::Operation::SQLHelpers

#quote

Methods included from PGTrunk::Operation::RubyHelpers

#dump, #to_a, #to_opts, #to_ruby

Methods included from PGTrunk::Operation::Inversion

#invert!, #irreversible!

Methods included from PGTrunk::Operation::Validations

#error_messages

Methods included from PGTrunk::Operation::Attributes

#attributes, #initialize

Instance Method Details

#column(name) ⇒ Object



20
21
22
# File 'lib/pg_trunk/operations/statistics/base.rb', line 20

def column(name)
  columns << name.strip
end

#expression(text) ⇒ Object

Methods to populate multivariable attributes from a block



16
17
18
# File 'lib/pg_trunk/operations/statistics/base.rb', line 16

def expression(text)
  expressions << text.strip
end