module Torque::PostgreSQL::Migration::CommandRecorder
Public Instance Methods
create_enum(*args, &block)
click to toggle source
Records the creation of the enum to be reverted.
# File lib/torque/postgresql/migration/command_recorder.rb, line 19 def create_enum(*args, &block) record(:create_enum, args, &block) end
invert_create_enum(args)
click to toggle source
Inverts the creation of the enum.
# File lib/torque/postgresql/migration/command_recorder.rb, line 24 def invert_create_enum(args) [:drop_type, [args.first]] end
invert_rename_type(args)
click to toggle source
Inverts the type name.
# File lib/torque/postgresql/migration/command_recorder.rb, line 14 def invert_rename_type(args) [:rename_type, args.reverse] end
rename_type(*args, &block)
click to toggle source
Records the rename operation for types.
# File lib/torque/postgresql/migration/command_recorder.rb, line 9 def rename_type(*args, &block) record(:rename_type, args, &block) end