instance method
drop_schema
Ruby on Rails 7.0.10
Since v4.2.9Signature
drop_schema(schema_name, **options)
Drops the schema for the given schema name.
Parameters
-
schema_namereq -
optionskeyrest
Source
# File activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb, line 215
def drop_schema(schema_name, **options)
execute "DROP SCHEMA#{' IF EXISTS' if options[:if_exists]} #{quote_schema_name(schema_name)} CASCADE"
end
Defined in activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb line 215
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::ConnectionAdapters::PostgreSQL::SchemaStatements