Class: PGTrunk::Operations::CompositeTypes::CreateCompositeType
- Inherits:
-
Base
show all
- Defined in:
- lib/pg_trunk/operations/composite_types/create_composite_type.rb
Instance Method Summary
collapse
Methods inherited from Base
#column
#quote
#dump, #to_a, #to_opts, #to_ruby
#invert!, #irreversible!
#error_messages
#attributes, #initialize
Instance Method Details
#invert ⇒ Object
72
73
74
|
# File 'lib/pg_trunk/operations/composite_types/create_composite_type.rb', line 72
def invert
DropCompositeType.new(**to_h)
end
|
#to_sql(_version) ⇒ Object
68
69
70
|
# File 'lib/pg_trunk/operations/composite_types/create_composite_type.rb', line 68
def to_sql(_version)
[create_type, *, register_type].join(" ")
end
|