instance method drop_table_sql

Ruby on Rails edge

Since edge Private — implementation detail, not part of the public API

Signature

drop_table_sql(table_name, if_exists: nil, force: nil, **)

No documentation comment.

Parameters

table_name req
if_exists key = nil
force key = nil
kwargs keyrest
Source
# File activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb, line 2038
        def drop_table_sql(table_name, if_exists: nil, force: nil, **)
          exists = " IF EXISTS" if if_exists

          "DROP TABLE#{exists} #{quote_table_name(table_name)}"
        end

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

Defined in ActiveRecord::ConnectionAdapters::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