Class: PGAssets::PGFunction
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- PGAssets::PGFunction
- Includes:
- LoadableAsset
- Defined in:
- lib/pg_assets/models/pg_function.rb
Instance Method Summary collapse
- #identity ⇒ Object
- #sql_for_reinstall ⇒ Object
-
#sql_for_remove ⇒ Object
TODO get this to work with bomboclaat schemas.
Instance Method Details
#identity ⇒ Object
16 17 18 |
# File 'lib/pg_assets/models/pg_function.rb', line 16 def identity proname end |
#sql_for_reinstall ⇒ Object
25 26 27 |
# File 'lib/pg_assets/models/pg_function.rb', line 25 def sql_for_reinstall cached_defn end |
#sql_for_remove ⇒ Object
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 |