module Upknit::EnableUuidExtensionOnCreate::PostgreSQL

An extension to ActiveRecord::Tasks::PostgreSQLDatabaseTasks

When prepended, this module enhances .create to enable UUID.

Public Class Methods

prepend(mod) click to toggle source
# File lib/upknit/enable_uuid_extension_on_create/postgresql.rb, line 14
def self.prepend(mod)
  mod.extend(self)
end

Public Instance Methods

create(master_established=false) click to toggle source
Calls superclass method
# File lib/upknit/enable_uuid_extension_on_create/postgresql.rb, line 9
def create(master_established=false)
  super
  connection.enable_uuid
end