instance method rename_schema

Ruby on Rails 8.1.2

Since v8.1.2

Signature

rename_schema(schema_name, new_name)

Renames the schema for the given schema name.

Parameters

schema_name req
new_name req
Source
# File activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb, line 291
        def rename_schema(schema_name, new_name)
          execute "ALTER SCHEMA #{quote_schema_name(schema_name)} RENAME TO #{quote_schema_name(new_name)}"
        end

Defined in activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb line 291 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveRecord::ConnectionAdapters::PostgreSQL::SchemaStatements

Type at least 2 characters to search.

Use the arrow keys to navigate results, Enter to open one, Escape to close.

Keyboard shortcuts

/
Focus search
⌘K / Ctrl-K
Command palette
?
This help
Esc
Close