Class: Scheman::Views::Mysql::CreateTable

Inherits:
Node
  • Object
show all
Defined in:
lib/scheman/views/mysql.rb

Instance Method Summary collapse

Methods inherited from Node

#initialize

Constructor Details

This class inherits a constructor from Scheman::Views::Mysql::Node

Instance Method Details

#to_sObject



230
231
232
233
234
235
# File 'lib/scheman/views/mysql.rb', line 230

def to_s
  str = ""
  str << "CREATE TABLE `#{table_name}` (\n"
  str << definitions.join(",\n").indent(2) + "\n"
  str << ");"
end