instance method
drop_schema
Ruby on Rails 6.0.6
Since v4.2.9Signature
drop_schema(schema_name, options = {})
Drops the schema for the given schema name.
Parameters
-
schema_namereq -
optionsopt = {}
Source
# File activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb, line 214
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 214
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::ConnectionAdapters::PostgreSQL::SchemaStatements