Class: PGTrunk::Operations::CompositeTypes::Base Abstract

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

Overview

This class is abstract.

Base class for operations with composite types

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, type, collation: nil) ⇒ Object

Populate columns from a block



12
13
14
# File 'lib/pg_trunk/operations/composite_types/base.rb', line 12

def column(name, type, collation: nil)
  columns << Column.new(name: name, type: type, collation: collation)
end