module SchemaPlus::Functions::ActiveRecord::Migration::CommandRecorder

Public Instance Methods

create_function(*args, &block) click to toggle source
# File lib/schema_plus/functions/active_record/migration/command_recorder.rb, line 7
def create_function(*args, &block)
  record(:create_function, args, &block)
end
drop_function(*args, &block) click to toggle source
# File lib/schema_plus/functions/active_record/migration/command_recorder.rb, line 11
def drop_function(*args, &block)
  record(:drop_function, args, &block)
end
invert_create_function(args) click to toggle source
# File lib/schema_plus/functions/active_record/migration/command_recorder.rb, line 15
def invert_create_function(args)
  options                 = {}
  options[:function_type] = args[3][:function_type] if args[3].has_key?(:function_type)
  [:drop_function, [args.first, args.second, options]]
end