Class: PGTrunk::Operations::CompositeTypes::Base Abstract
- Inherits:
-
PGTrunk::Operation
- Object
- PGTrunk::Operation
- PGTrunk::Operations::CompositeTypes::Base
- Defined in:
- lib/pg_trunk/operations/composite_types/base.rb
Overview
This class is abstract.
Base class for operations with composite types
Direct Known Subclasses
ChangeCompositeType, CreateCompositeType, DropCompositeType, RenameCompositeType
Instance Method Summary collapse
-
#column(name, type, collation: nil) ⇒ Object
Populate columns from a block.
Methods included from PGTrunk::Operation::SQLHelpers
Methods included from PGTrunk::Operation::RubyHelpers
#dump, #to_a, #to_opts, #to_ruby
Methods included from PGTrunk::Operation::Inversion
Methods included from PGTrunk::Operation::Validations
Methods included from PGTrunk::Operation::Attributes
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 |