Sha256: 3a29d9108fe28047a554a710d66cf36305c2fcb251507936e2cf7b5d5ccca4dd
Contents?: true
Size: 773 Bytes
Versions: 10
Compression:
Stored size: 773 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 rename operation def invert_rename_type(args) [:rename_type, args.reverse] end # Records the creation of a schema def create_schema(*args, &block) record(:create_schema, args, &block) end # Inverts the creation of a schema def invert_create_schema(args) [:drop_schema, [args.first]] end end ActiveRecord::Migration::CommandRecorder.include CommandRecorder end end end
Version data entries
10 entries across 10 versions & 1 rubygems