Method: Sequel::Database#create_table!

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

#create_table!(name, options = {}, &block) ⇒ Object

Forcibly creates a table. If the table already exists it is dropped.



64
65
66
67
# File 'lib/sequel/database/schema_methods.rb', line 64

def create_table!(name, options={}, &block)
  drop_table(name) rescue nil
  create_table(name, options, &block)
end