title: Rails schema.rb does not include new custom Postgres function
body: <p>I have just created a new custom Postgres function via usual migration.</p>
  
  <pre><code>class CreateBestBowlingFigureFunction &lt; ActiveRecord::Migration
    def change
      execute "CREATE OR REPLACE FUNCTION ......"
    end
  end
  </code></pre>
  
  <p>After the migration, this new function is not available in schema.rb.</p>
  
  <p>As per the official doc, I use the command <code>db:schema:load</code> to create the schema before running my tests.</p>
  
  <p>So, what is the best practice to create custom functions before running the tests?</p>