Flowdock
method

drop_table

Importance_1
v5.1.7 - Show latest stable - 0 notes - Class: ActiveRecord::ConnectionAdapters
drop_table(table_name, options = {}) public

Drops a table from the database.

:force

Set to :cascade to drop dependent objects as well. Defaults to false.

:if_exists

Set to true to only drop the table if it exists. Defaults to false.

:temporary

Set to true to drop temporary table. Defaults to false.

Although this command ignores most options and the block if one is given, it can be helpful to provide these in a migration’s change method so it can be reverted. In that case, options and the block will be used by create_table.

Show source
Register or log in to add new notes.