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