Module: Upknit::EnableUuidExtensionOnCreate::PostgreSQL

Defined in:
lib/upknit/enable_uuid_extension_on_create/postgresql.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.prepend(mod) ⇒ Object



11
12
13
# File 'lib/upknit/enable_uuid_extension_on_create/postgresql.rb', line 11

def self.prepend(mod)
  mod.extend(self)
end

Instance Method Details

#create(master_established = false) ⇒ Object



6
7
8
9
# File 'lib/upknit/enable_uuid_extension_on_create/postgresql.rb', line 6

def create(master_established=false)
  super
  connection.enable_uuid
end