module ArSchemaFunctions::Extensions::PostgreSQLSchemaDumper
Public Instance Methods
functions(stream)
click to toggle source
# File lib/ar_schema_functions/extensions.rb, line 20 def functions(stream) functions = @connection.functions return unless functions.any? functions.each do |function| indented_function = function.lines.map { |line| " #{line}" }.join stream.puts " connection.execute(<<~SQL)\n#{indented_function} SQL" stream.puts end end