Class: PGTrunk::Operations::Enums::CreateEnum
- Inherits:
-
Base
show all
- Defined in:
- lib/pg_trunk/operations/enums/create_enum.rb
Instance Method Summary
collapse
Methods inherited from Base
#value
#quote
#dump, #to_a, #to_opts, #to_ruby
#invert!, #irreversible!
#error_messages
#attributes, #initialize
Instance Method Details
#invert ⇒ Object
54
55
56
|
# File 'lib/pg_trunk/operations/enums/create_enum.rb', line 54
def invert
DropEnum.new(**to_h)
end
|
#to_sql(_version) ⇒ Object
50
51
52
|
# File 'lib/pg_trunk/operations/enums/create_enum.rb', line 50
def to_sql(_version)
[create_enum, *, register_enum].join(" ")
end
|