Class: PGAssets::PGFunction

Inherits:
ActiveRecord::Base
  • Object
show all
Includes:
LoadableAsset
Defined in:
lib/pg_assets/models/pg_function.rb

Instance Method Summary collapse

Instance Method Details

#identityObject



16
17
18
# File 'lib/pg_assets/models/pg_function.rb', line 16

def identity
  proname
end

#sql_for_reinstallObject



25
26
27
# File 'lib/pg_assets/models/pg_function.rb', line 25

def sql_for_reinstall
  cached_defn
end

#sql_for_removeObject

TODO get this to work with bomboclaat schemas



21
22
23
# File 'lib/pg_assets/models/pg_function.rb', line 21

def sql_for_remove
  sql = "DROP FUNCTION IF EXISTS #{proname}(#{get_function_args})"
end