# File lib/active_record/connection_adapters/abstract_adapter.rb, line 376 def create_table(name, options = {}) table_definition = TableDefinition.new(self) table_definition.primary_key(options[:primary_key] || "id") unless options[:id] == false yield table_definition create_sql = "CREATE TABLE #{name} (" create_sql << table_definition.to_sql create_sql << ") #{options[:options]}" execute create_sql end