Method: Sequel::Database#drop_table

Defined in:
lib/sequel/database/schema_methods.rb

#drop_table(*names) ⇒ Object

Drops one or more tables corresponding to the given table names:

DB.drop_table(:posts, :comments)


110
111
112
113
114
115
# File 'lib/sequel/database/schema_methods.rb', line 110

def drop_table(*names)
  names.each do |n|
    remove_cached_schema(n)
    execute_ddl(drop_table_sql(n))
  end
end