method
drop_table
![Moderate documentation Importance_2](https://d2vfyqvduarcvs.cloudfront.net/images/importance_2.png?1349367920)
drop_table(table_name, options = {})
public
Drops a table from the database.
Although this command ignores 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.
Register or
log in
to add new notes.
ivanoats -
April 8, 2009
![Default_avatar_30](https://www.gravatar.com/avatar/ea2273b4310db9ac0109dfaefd489a06?default=http://apidock.com/images/default_avatar_30.png&size=30)
2 thanks
use create table :force => true
if you want to drop a table before creating one in a migration, use the :force => true option of the create_table method