Sha256: 6a9cbca44d04ef06b90e3c4c4fcd88b2f277766a4058894a899fd16282b875bf
Contents?: true
Size: 772 Bytes
Versions: 14
Compression:
Stored size: 772 Bytes
Contents
# frozen_string_literal: true module Torque module PostgreSQL module Migration module CommandRecorder # Records the rename operation for types. def rename_type(*args, &block) record(:rename_type, args, &block) end # Inverts the type name. def invert_rename_type(args) [:rename_type, args.reverse] end # Records the creation of the enum to be reverted. def create_enum(*args, &block) record(:create_enum, args, &block) end # Inverts the creation of the enum. def invert_create_enum(args) [:drop_type, [args.first]] end end ActiveRecord::Migration::CommandRecorder.include CommandRecorder end end end
Version data entries
14 entries across 14 versions & 1 rubygems