title: psql must be owner of extension plpgsql
body: <p>Ubuntu 18.04, Ruby ruby 2.4.1p111 (2017-03-22 revision 58053) [x86_64-linux], PostgreSQL 9.4.21</p>
  
  <p>I am trying to run rake for db create and here is what I get:</p>
  
  <pre><code>nenad@mycomputer-l:~/someproject/foo$ bundle exec rake db:create db:bar:create db:prepare
  **************************************************
  ⛔️ WARNING: Sidekiq testing API enabled, but this is not the test environment.  Your jobs will not go to Redis.
  **************************************************
  Database 'foo_development' already exists
  Database 'foo_test' already exists
  Database 'bar-development' already exists
  Database 'bar-test' already exists
   set_config 
  ------------
  
  (1 row)
  
  psql:/home/nenad/someproject/foo/db/structure.sql:20: ERROR:  must be owner of extension plpgsql
  rake aborted!
  failed to execute:
  psql -v ON_ERROR_STOP=1 -q -f /home/nenad/someproject/foo/db/structure.sql foo_development
  
  Please check the output above for any errors and make sure that `psql` is installed in your PATH and has proper permissions.
  
  /home/nenad/someproject/foo/vendor/bundle/ruby/2.4.0/gems/activerecord-5.2.2/lib/active_record/tasks/postgresql_database_tasks.rb:116:in `run_cmd'
  /home/nenad/someproject/foo/vendor/bundle/ruby/2.4.0/gems/activerecord-5.2.2/lib/active_record/tasks/postgresql_database_tasks.rb:88:in `structure_load'
  /home/nenad/someproject/foo/vendor/bundle/ruby/2.4.0/gems/activerecord-5.2.2/lib/active_record/tasks/database_tasks.rb:234:in `structure_load'
  /home/nenad/someproject/foo/vendor/bundle/ruby/2.4.0/gems/activerecord-5.2.2/lib/active_record/tasks/database_tasks.rb:247:in `load_schema'
  /home/nenad/someproject/foo/vendor/bundle/ruby/2.4.0/gems/activerecord-5.2.2/lib/active_record/tasks/database_tasks.rb:266:in `block in load_schema_current'
  /home/nenad/someproject/foo/vendor/bundle/ruby/2.4.0/gems/activerecord-5.2.2/lib/active_record/tasks/database_tasks.rb:316:in `block in each_current_configuration'
  /home/nenad/someproject/foo/vendor/bundle/ruby/2.4.0/gems/activerecord-5.2.2/lib/active_record/tasks/database_tasks.rb:313:in `each'
  /home/nenad/someproject/foo/vendor/bundle/ruby/2.4.0/gems/activerecord-5.2.2/lib/active_record/tasks/database_tasks.rb:313:in `each_current_configuration'
  /home/nenad/someproject/foo/vendor/bundle/ruby/2.4.0/gems/activerecord-5.2.2/lib/active_record/tasks/database_tasks.rb:265:in `load_schema_current'
  /home/nenad/someproject/foo/vendor/bundle/ruby/2.4.0/gems/activerecord-5.2.2/lib/active_record/railties/databases.rake:300:in `block (3 levels) in &lt;top (required)&gt;'
  /home/nenad/someproject/foo/lib/tasks/db.rake:5:in `block (2 levels) in &lt;top (required)&gt;'
  /home/nenad/someproject/foo/vendor/bundle/ruby/2.4.0/gems/rake-12.3.2/exe/rake:27:in `&lt;top (required)&gt;'
  /home/nenad/.rbenv/versions/2.4.1/bin/bundle:22:in `load'
  /home/nenad/.rbenv/versions/2.4.1/bin/bundle:22:in `&lt;main&gt;'
  Tasks: TOP =&gt; db:structure:load
  (See full trace by running task with --trace)
  </code></pre>