module PowerEnum::Migration::CommandRecorder
Extensions for CommandRecorder
Public Instance Methods
create_enum(*args)
click to toggle source
Records create_enum
# File lib/power_enum/migration/command_recorder.rb, line 9 def create_enum(*args) record(:create_enum, args) end
invert_create_enum(args)
click to toggle source
The inversion of create_enum
is remove_enum
@param [Array] args Arguments to create_enum
@return [Array] [:remove_enum, [enum_name]]
# File lib/power_enum/migration/command_recorder.rb, line 21 def invert_create_enum(args) enum_name = args[0] [:remove_enum, [enum_name]] end
remove_enum(*args)
click to toggle source
Records remove_enum
# File lib/power_enum/migration/command_recorder.rb, line 14 def remove_enum(*args) record(:remove_enum, args) end