Set search path for Postgres in a Rails app
You can define it in your database.yml using the schema_search_path key with a string value

production:
  adapter: postgresql
  ...
  schema_search_path: 'schema1,public'


You can find out a bit more here: https://til.hashrocket.com/posts/5aa2892b43-set-schema-search-path