Familiar.replace_function

You're seeing just the function replace_function, go back to Familiar module for more information.
Link to this function

replace_function(function_name, opts)

View Source

Replaces a new database function from a function definition file.

This function will use CREATE OR REPLACE FUNCTION so can only be used if the new version has the same arguments and return type as the old version.

Options:

  • :version - the version of the updated function
  • :revert - the version to revert to if the migration is rolled back
  • :schema - the schema the function lives in. Uses default schema if not specified