Class: PGTrunk::Operations::Enums::Base Abstract

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

Overview

This class is abstract.

Base class for operations with enumerated types

Direct Known Subclasses

ChangeEnum, CreateEnum, DropEnum, RenameEnum

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

#value(value) ⇒ Object

populate values one-by-one in a block



13
14
15
# File 'lib/pg_trunk/operations/enums/base.rb', line 13

def value(value)
  values << value.to_s
end