Module: ActiveRecord::ConnectionAdapters::SchemaStatements

Includes:
SchemaProcs
Defined in:
lib/connection_adapters/schema_statements.rb

Instance Method Summary collapse

Methods included from SchemaProcs

#behavior, #cascade_or_restrict, #definer_or_invoker, #strict_or_null

Instance Method Details

#drop_table(name, options = {}) ⇒ Object



5
6
7
# File 'lib/connection_adapters/schema_statements.rb', line 5

def drop_table name, options={}
  execute "DROP TABLE #{name.inspect} #{cascade_or_restrict(options[:cascade])}" 
end