Method: ActiveRecord::ConnectionAdapters::PostgreSQL::SchemaStatements#schema_search_path=
- Defined in:
- activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb
#schema_search_path=(schema_csv) ⇒ Object
Sets the schema search path to a string of comma-separated schema names. Names beginning with $ have to be quoted (e.g. $user => ‘$user’). See: www.postgresql.org/docs/current/static/ddl-schemas.html
This should be not be called manually but set in database.yml.
234 235 236 237 238 239 |
# File 'activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb', line 234 def schema_search_path=(schema_csv) if schema_csv internal_execute("SET search_path TO #{schema_csv}") @schema_search_path = schema_csv end end |